I have created an automation triggered by a state change of a motion sensor from off to on, it has a condition to check illuminance level from another sensor. It’s working perfectly except when I’m working and light level changes, it doesn’t trigger the automation because motion sensor state hasn’t change from off to on as it’s already on for a while. I can create another automation to trigger with light level change below certain number and also turn on the lights, but I would prefer if I could keep all within the same automation. I’ve thought of triggering it on motion and have a wait_for_trigger for the illuminance sensor. Is that the only way, or there are other possibilities?
You want to trigger the automation by lux < x and motion being on but also if there’s motion and the lux < x, right?
You could define the lightlevel also as a trigger and define an extra condition with the motion sensor being on.
Oh, I see. I thought the conditions wouldn’t be true when the trigger was the motion_sensor, as it just changed states, but I guess it would already be on in this case.
I also uses values in this kind of automations. Nothing wrong there.
I’d just wanted to be close as possible for the given automation and used the input to demonstrate that you could use multiple triggers.