How do I add a conditional to my motion detection in Node Red?

I’d like to check if Lux is < 10 when motion is detected.
Preferably in this events: state node.

I can’t find a good way to do this and I would consider this to be quite a basic ask?


Look at the switch node. You would insert it and your test between the state node for the lamp brightness and your dimmer call.

You could also use a Trigger State node and put both conditions (motion and Lux) in that node.