I am working on an automation that will turn a group of lights off once a specified lux value has been reached during a specific day light phase. I do not have interior sensors at the moment, so I'm using virtual sensors defined below.
I have the following integrations setup:
Sun2 - using the deCONZ daylight phase sensor. This provides various phases based on the time of day
Illuminance - using this to provide a exterior lux value.
Current logic:
Trigger: every 5 minutes
Conditions: daylight phase is in golden hour 1 and lux value is above 2850
Actions: Turn off specified interior lights and send a notification to a defined group of devices
While this automation works and does what I want it to, it obviously runs every 5 minutes and executes the actions. So I'm getting notifications every 5 minutes during golden hour 1 once the lux value is above 2850.
Is there a better way to structure the automation to continuously check the lux value while daylight phase is in golden hour 1 and once the actions are successful it stops executing. I essentially want it to continue to check until conditions are met and then execute one time. I might be over thinking this by a long shot... suggestions welcome.