My wife has a bad habit of leaving lights on.
I just installed a smart switch for the light.
I feel at this point I am pretty good with rules machine but How can I create a rules that turns off a light if it was in for 10 mins. Bonus if it can handle Multiple lights in a single rule.
Am I better off with an app?
I use a variation of this;
Trigger: Switch On
Wait for event: Switch turns off - Timeout: 45 min
This has been covered before, so let me point you toward a working solution (that doesn't involve Motion Sensors...):
Hello all. New to the Rule Machine.
I'm having a heck of a time trying to figure out how to automate a light to turn off after 30 minutes.
Basic set up. When the front light goes on, I would like that same light to turn off after 30 minutes.
I'm sure its easy, but I have no idea what I'm doing. I was able to turn my fan on and off at specified times. Joy!!
Thanks in advance!
(plus a couple that do...)
Hi, I'm a new hubitat user, overall really enjoyed using hubitat. I've set up the default motion lighting app and it does pretty much everything I want:
Turn on lights when motion detected
turn on lights when contact sensor open
Turn off lights after delay
Don't turn on lights when a switch is off
But there is one edge case, that doesn't do what I want (but might be expected behavior). I want to turn off the lights after delay if turned on through other actions.
So for example, if I turn on …
New Hubitat user here. Just finished adding about 50 various z-wave devices and letting my z-wave mesh settle for the 3 or 4 days as recommended. I am now getting into creating some of my first automation's.
I'm starting off with just some basic automation's to turn lights off that my kids leave on frequently. I have been doing a lot of reading and it seems the general recommendation is to use an app like Motion Lighting vs using RM 4.0.
I do already have a grasp on building out rules in RM ba…
The most straight forward would probably be with simple automation rule.
oh wow i didnt even think of delay. thanks for pointing me in right direction.
while yes this would be a simple solution, it can lead to other issues down the line. i used to use SA for some of my lights, but it would continue the countdown even if the door was closed. This lead to someone going into the Pantry (with a 3 min auto turn off), close the door, then open it again within that first 3 min timer. The SA would trigger again, and now there would be 2 instances of turn off after 3 minutes. Once the first one triggers, it will turn off the light (even if the door was only opened for 1 minute because the first trigger was still present from 3 minutes earlier). I ultimately moved my rules from SA to RM
Note that if you stick with the Rule instead of the app, you might want to make a small modification to your actions. Right now, your light will turn off 30 minutes after any time it's turned on. If you turn it on at 1 PM, turn it off at 1:20, then turn it back on at 1:29, it will still turn off at 1:30, even though it has only been on for 1 minute and not 30 (and it will also turn off at 1:59 if still on, and likewise for any "on" action you do at any time--these future, delayed "off" actions w…
i would go with this ruling with the cancellable action to have the door closing remove any previous triggers and not cause the overlap like i mentioned above
That's not how SAR works and was an issue if that was your experience. I use SAR in this fashion for several lights throughout the house.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.