Lights off after xx mins

Hello - New user here switching from ST.

I have several lights throughout the house that I want to turn off after 30mins (individually) if the wife/kids leave them on. I want them to each have their own 30min timer. Meaning I do not want one light to affect another lights 30min timer.

I setup a rule in rule machine, but I’m not sure if it will work the way I want. I’m afraid if the 30 mins runs out on 1 light it would also turn off another light that may have just been turned on.

Any advice on my rule. I did search, but couldn’t find anything specific to my question. My screen shot is of how I currently set it up. I would hate to have to have to setup individual rules.

I hope I explained this well.

Thanks in advance.

Edit -


I shortened the length of the timer and tested it out. It doesn’t work. Lol

Join the owners group (assuming your hub is registered to the same account as your Community login), and it should let you post images:

http://community.hubitat.com/g/owners

That being said, off the top of my head, this would be difficult to do all in one rule, and you'd likely be better off using separate rules (even a Basic Rule would work; keep in mind you can clone to make additional setups easier) or a custom purpose-built app, so one of those is already my recommendation. :slight_smile:

2 Likes

Thanks. I joined as you recommended and uploaded the pic. Man that’s going to be a lot of rules just for one automation.

You should break those into individual rules for each light.

1 Like

To expand a little more. The way your rule is currently written, of any light is on for 30 minutes, then it will turn the all off.

1 Like

Yea, that’s what I had to do.

Thanks for the help everyone.

This is how you can do it with a single rule.

I don't think that will work if someone turns off a light than back on within the 30-minute window. For example, if the light is turned on then off then back on 25 minutes after the initial turn on, the delayed off will turn off the light after 5 minutes. Even incorporating a Cancel Delayed Actions or Waits would allow one light to impact another. There's probably some logic to make this work but a rule for each light is probably easier.

2 Likes

Even with separate rules. It would turn off after a certain amount of time unless you added a condition to cancel the timers when the lights are turned off. Because if the light is already on when someone walks in the room they are not going to push the switch to turn it on again and reset the timer. So either my one rule way or multi rules the simple answer is to add the cancel timed even for that switch into the rule.

I think they're pointing out that your screenshot doesn't show any actions to cancel the wait.

1 Like

You are correct. This has the cancel timed events.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.