Hi,
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,
I am grateful for your examples, but I will still use my actual automations, that make use of the illuminance sensor for the first automation, then only motion for automation 2 and a timer for the switch off.
Aqara E1 PIR sensor had a weakness, lux value only updated when there are motion detected, it won’t provide realtime lux update. The automation you build won’t be accurate or consider their dedicated T1 lux sensor for better data. I only found out with node-red reading from the debug output.
Thanks for the info @raymondsfk . That weakness about the lux value update was making me crazy Now I have an external lux sensor so I can do the automations using this new sensor.