Node-RED Light flows

Node-RED example flows related to light.
Table of Contents
Light on based on motion
Keep the lights on while there is motion detected.
You can download this flow here.
Scenario:
This flow turns on the light if someone enters the room and turn it off when nobody is detected for a while.
- [MQTT node] Motion sensor
- [Change node] Filter if the motion field
Explanation of each node:
-
[inject node]
-
This get node is part of the additional nodes set, named node-red-contrib-zigbee2mqtt. You must install this first to used it. Via the menu > Manage Palette > Palette
Additions to this flow:
<< See also my other Node-RED pages