Numerous Outside Light Rule

I have around 10 outside lights. I’d like to create a “safety” rule that if (for whatever reason) one of these lights stays on for 15 minutes in duration 45 minutes or more past sunrise, automatically turn it off. Is there a graceful way to do this other than a fairly long if-then-else for every single outside light ? Thx - still learning, and porting from webCoRE :slight_smile:

You can use the $context.event.deviceName in notifications or conditions, but I don’t think there’s a variable like that to control the device. Probably would have to use if conditions one after another for that.