I've been looking for a feature that will automatically turn the lights off after 'x' minutes if they have been on. Basically if someone forgets to turn the light off, I want it to turn off after some time interval. Does something like this exist already?
The stock IOS app has a timer function, but it is not recurring. All the other routines want a specific day/time to do something but I don't care about day/time.
I wrote some sample code in Python that pulls the state of the group at an interval and if it exceeds the threshold, it turns the light off. If there is something out there that does this already, I won't go further...but if it doesn't exist, I will continue writing the code.
This is an old topic, but I was looking for the same information. After a while, I realized that it is more simple to create a rule with the following body, to turn off the light (in my case is a hue smart plug) 8 minutes after it turned on.