vd Brink Home Automations

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

Follow me on GitHub

Node-RED + Home Assistant: Full moon

Home Assistant logo Node-RED logo

When receiving an event from Home Assistant, let’s say that the moon state change to full moon, trigger a flow in Node-RED.

See initial setup for the required additional nodes and setup.


Home Assistant state update trigger in Node-RED

To trigger a flow in Node-RED based on an event updates in Home Assistant you can use the node ‘events: state’

An example is to send a message (in this case, to the debug node, replace it with your own chat app) when it’s a full moon.

flow Node-RED full moon

Download this flow

The configuration of the state node:

Server     Home Assistant
Entity     Moon Phase [exact]
If state   [is] [a-z] full_moon
For        [0-9] 0 [minutes]
State type [string]
flow Node-RED full moon

<< See also my other Node-RED Home + Assistant pages


Top | Homepage | Best Buy Tips