I have 2 sensors that receive my morning alarm time and morning alarm time + 15 (wake up time) via API and I’d like to be able to have an automation that if time is >= morning alarm time (sensor.wake) and time <= wake up time (sensor.wake_up) and light is off, it would turn on this light with specific settings.
This is what I currently have on my UI:
And this is my automation (which doesn’t seem to work:
Triggering on the state of the light is probably not what you want to do here.
I would flip these around and trigger off the first time, then use the light and the second time as the condition.
there’s a long thread here here and about 2/3 of the way down they hit on the idea of triggering against the time like this: