I have an aqara motion sensor with illuminance sensor and want to share automations.
The idea is to turn on light when there is motion and illuminance below x.
Trigger is motion, condition is illuminance and action is turn on light.
Trigger starts a timer.
Once the light turns on the condition of illuminance does not meet so I have done another automation that does not have illumination condition.
So at fiirst… Automation 1: detect motion, illuminance below threshold --> turn on light, start timer, turn off automation 1, turn on automation 2.
Automation 2: detect motion --> restart timer
Automation 3: timer expires --> turn off light, turn on automation 1, turn off automation 2.
That’s it, what do you guys think?
Is this the correct approach?
Thanks in advance,