Hello All,
I am looking for a solution for my need for alerts when a door is open. Some doors have different triggers also. Any ideas, I started with the rule below but it does not seem stable and I am guessing there is a better method.
Thanks Again
Matt
What doesn't seem "stable" about the rule to you, i.e., what problems are you experiencing? I see some problems with the way it is written in that there are some things you put in it that will never actually happen (stay tuned
), but right now it should notify all those devices with your specified text any time the door opens as soon as it opens. If that doesn't work, I'd make sure that the "Notify" command does what you want on the desired devices (are some of them speakers that only work with "Speak" instead? do any of these happen to be Chromecast devices that might be slowing down the hub--not out of the question with that integration's beta status?).
Back to the rule: what are you trying to accomplish with the one-minute delay? Right now, it will pause your rule for an minute after notifying, then resume where it left off...and do nothing since that's the end of that section of actions. When the door gets closed, it could cancel this delay, but right now it's not because you didn't set the "Cancel" flag on the "Delay" action. Even if you did that, however, it still wouldn't do anything since there's nothing to run after the delay and the rule would do effectively the same thing if you left both of these actions out.
Do you, by chance, want to do this notification only if the door has been open for a minute? If so, you could put the "Delay" (with the "Cancel" flag set) before the notification action, then everything else would be good as is. (Tip to save you some clicking: a "changed" trigger instead of two separate "open" and "closed" triggers and a simple ELSE
instead of an ELSE-IF
would be logically equivalent to what you have here.)
You may also consider the built-in Notifications app, which was written to handle situations like these, but your rule should also work with some modifications.
Hello,
I looked at the notifications app and there is no way to specify to cancel the "door opened" notification, if it is close before the threshold is met.
And...omg...it was the cancel flag switch with delay that I forget...lord...
Thanks Again
Matt
There is--what you want to set is the "for how long?" field. Something like this:
True, but that is only part of the problem: even with that flag set, you're just cancelling a delay that does nothing since it's your very last action (the end result would be the same if you deleted both of these actions). Hopefully the part about changing the order above was clear--then your delay and the cancel would actually do something, and the actions themselves would be delayed instead of happening immediately.
Yes my tests just confirmed that in RM4, let me try Notifications real fast thx.
Matt