vd Brink Home Automations

Home automations: Home Assistant, ESPHome, Node-RED and more.

Follow me on GitHub

Node-RED - Lights on by motion

Keep it on as long as motion is detected

Node-RED logo

Node-RED example flow: to turn a light on when motion is detected and keep it on as long as motion is detected.


Light on based on motion

Keep the lights on while there is motion detected.

Node-RED flow

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:


Hardware

Motion / presence sensors:

Lights:


Table of Content ^

<< See also my other Node-RED pages


^^ Top | Homepage | Best Buy Tips | Automation Ideas