Yeah, I was coming to that conclusion. I can see now what the problem was with mine. The Lux sensor reports in every 10 mins. The 10 minute (plus 10 seconds) delay resultsed the newest lux value which was also >150 cancelling the delay from the previous reading, which meant that the GV did NOT change.
@bravenel, It seems that it's not possible to use a simple condition with the condition being private boolean of a different rule. I want to set the PB of the other rule, but only if the PB is false. Is that by design?
Yes it is. Only a the rule itself can read the state of the private Boolean. Why donāt you use a global variable for that? Global variables can be read and set by any rule.
Even though I am not sure why you want to do it that way. If the PB is true, what is the problem with setting it to true again? It wonāt invoke a change...
Need help with what is likely to be a simple 4.0 rule but Iām just not understanding most likely...
So I have closets in my bedrooms that are double sliding doors. I have a contact sensor on each door (left and right). I want the light in the closet to come on when either door opens, but only shut off when BOTH doors are closed. If both or one door doesnāt close after 15 minutes, shut off the light (so itās not on all the time if someone forgets to shut a door).
The rule Iāve created turns on the lights, but when I close the doors the lights do not shut off. Iām also not understanding how to add the delay for turning the lights off after 15 minutes if the doors are open.
Built in variables for actions in Rules 4.0? I am converting a lot of WebCore pistons from SmartThings to Rule 4.0. And one thing I have been looking for is what variables are pre-defined. in SmartThings when I had a list of devices that would trigger an event the variable $device would be populated and I could use that to build strings for notification.
For example I have 5 leak sensors and I set the trigger to have all 5 devices. One of those statements would trigger the rule and then in actions how do I determine the device/rule that triggered it.
I went to your documentation page and couldn't find anything on variables and searching hear hasn't turned up anything but the new local variables. Is there a article or documentation page that I am missing?
%device% will give you the device name that triggered the rule
%value% will give you the value of the device that triggered the rule
%date% gives you the current date
%time% gives you the current time
%variable-name% will get you the value of global/local defined variable
@bravenel, it might be helpful to others to show the internal variables in the wiki. Especially if there are other variables
After the On command add:
Off: Master Bedroom Closet Light --> delay after 00:15:00
This will turn the lights off after 15 minutes with the door(s) open. The delay is added when you add the off action. On the action page there will be a toggle to delay action. Once set you can enter your delay.
In the following rule, when the Kitchen goes off then I turn off a couple other things after a short delay. It works ok. But there is an occasion when the Kitchen doesn't go off for some reason. I want to have a longer delay if that doesn't happen and still turn off the last 2 items. What is the best way to add that in? In other words, if the Kitchen doesn't go off after about 10 minutes, turn off Flower and Bedtime.