I have an existing RM3 rule below. I wanted to modify the playAnnouncement which is a custom action. I don't see the option anymore to edit or even add another one. So I decided to re-create in RM4. Can't quite figure out how to make the same thing happen in RM4. So some help would be appreciated.
All I'm doing is monitoring certain doors to see if they get left open then notify me. here is my RM3 rule.
If any of the selected doors remain open for 10 minutes then I want a notification. If the door is closed within those 10 minutes then no notification.
Still not sure why I can't edit the existing RM3 rule. But the one item doesn't show up when I go into the actions again.
Put the delay in the first if
If (any open) then
delay 10 min (cancel)
notify
close()
else
Cancel delay
open()
end if
but here is another issue if you open one door, then go open a second door, I think you will get 2 notifications. I am hoping to use local vars to stop this.... I have found that I use 2 rules one to set a global var that I use to trigger the notification rule.
This is what the Cancel on the delay and the Cancel Delay in the Else part accomplish. You will only get the message if the door has been left open continuously for 10 minutes.
Anybody figure this out? I'm searching through the topics but couldn't find the exact thing I'm looking for.
Basically RM3 is gone so I am rewriting to RM4. Harder to figure out with the Cancel on Truth gone. So need this in RM4:
Trigger
Front Door Opens
Action (abstract since I"m still trying to figure a nice way to do this)
If front door is left open for 5 minutes then speak a message
Repeat speaking message every 5 minutes until front door is closed.
My guess for RM4 is something like this but it's not straight forward
Trigger: Front Door contact Changed
Action:
if front door is open
speak message : delay 5 minutes (cancelable)
else
cancel delayed actions
end if
I'm guessing this is too simplified and I probably need a variable somewhere.
Update: seems to work and repeat the message every 5 minutes until the door is closed without me using the Repeat command. That's great since it's working but I have no idea how that's working.
Looks nice and clean. Hopefully has been working for you. Mine seemed to work too and was simple but mine should not work based on no repeat. I will switch to your example method once mine breaks down and goes awry. THanks a bunch! I'm still getting used to RM4 I guess.