Node Red - Adding Illuminance level to a motion initiated flow

Here is what it looks like now,

First of all you need to uncheck the box "send events" in the Garage Lux node. Currently (checked) it will turn on whenever the lux is >625 (it acts as a trigger). Unchecking will fix that, and only turn it on if there is motion in garage.

Secondly, the Lux node is not included in the logic for turning off, only turning on.

How is your mode switch set up?

1 Like

Here is the mode node set up,

Won't it turn off if there is no motion regardless of the LUX?

Have a look at my flow I posted above.
It has lux condition to NOT turn on a light if lux is above certain level (send events NOT checked)
And a separate line to turn off the light when lux goes above threshold if light is already on
Send events is only ticked for the lux OFF cmd

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.