I tried to search for something like what I’m looking to do, but not sure I can come up with a good way to search for it, as nothing looked like what I’m looking for.
My daughter has a new trick - she has been getting up in the middle of the night and turning her light on, then going back to sleep, so I’d like to see about setting something up to turn it back off after 30 minutes or so, but only if it’s turned on within a certain timeframe, say between 9pm and 6am. I’m sure this can be done, just not sure how to accomplish it.
It’s true. You’d have to adjust the time to like 6:30am. The other way, which is more complicated, is not use the “for 30 minutes”, but instead call a script that has a 30 minute delay. But I think it may be overly complicated and unnecessary for what you’re looking for.
Haha yep, or a third was like I was alluding to would be to look at the last changed state in a template and compare it to datetime now. This would prevent the delay floating out there.
I used following in my scenario where my kids forget to turn off deck light off when our dog comes back inside. I got this idea from someone who posted on this forum for a different scenario.
This automation turns off deck light (zwave switch) after 10 minutes.