Node-RED vs Home Assistant Automations: When to Use Each
Home Assistant has two automation engines: the built-in YAML/UI automations and Node-RED (via add-on). After building 120+ automations split between both, I have clear opinions on when each tool is the right choice.
Home Assistant Native: Simple Triggers
Use HA automations for simple if-then logic. Motion detected, turn on light. Temperature above threshold, turn on fan. Door opened, send notification. These are easy to build in the UI, easy to debug, and easy for others to understand. I have 85 of these handling routine tasks.
Node-RED: Complex Logic and State Machines
Use Node-RED when logic has multiple conditions, delays, loops, or state that persists between triggers. My washing machine notification is a good example: it monitors power draw, detects the start of a cycle, waits for power to drop below 5W for 3 minutes (indicating cycle end), then sends a notification. Trying to build that in HA YAML is painful. In Node-RED it is a visual flow that takes 5 minutes.
My Rule of Thumb
If the automation fits in one sentence, use HA native. If you need a paragraph to explain the logic, use Node-RED. If you find yourself using more than two “wait” actions or “choose” conditions in HA, move it to Node-RED. The visual flow makes complex logic much easier to maintain and debug six months later when you have forgotten why you built it.