In This Article
Home Assistant's built-in automation editor has improved massively, but Node-RED still has a devoted following because it solves a different problem. Instead of thinking in YAML or trigger-condition-action blocks, Node-RED lets you design automations visually. Events flow from one node to another, making complex logic easier to understand at a glance.
If you have ever built a Home Assistant automation that works but feels awkward to maintain, Node-RED may be exactly what you need. This guide covers the basics without drowning you in theory.
What Node-RED Is Good At
Node-RED shines when an automation has multiple triggers, branching logic, timers, state checks, or notifications that need to be coordinated carefully. Examples include presence-based lighting, heating routines with several edge cases, appliance monitoring, and occupancy logic that combines different sensors.
The big benefit is visibility. You can look at a flow and understand its logic quickly. That is much harder when an automation grows across dozens of YAML lines or several nested choose blocks.
How to Install Node-RED in Home Assistant
- Open Settings → Add-ons → Add-on Store
- Find Node-RED in the community add-ons section
- Install it and enable Start on boot plus Watchdog
- Open the configuration and make sure Home Assistant auth is enabled
- Start the add-on and open the web UI
Once the add-on launches, install the Home Assistant WebSocket nodes if they are not already present. These nodes let Node-RED listen to entity changes and call Home Assistant services directly.
Build Your First Flow
A simple first project is a hallway light automation. The logic: when motion is detected after sunset, turn on the hallway light, wait two minutes, then turn it off if motion has stopped.
In Node-RED, that becomes:
- Events: state node listening for motion sensor turning on
- Current state node checking whether the sun is below horizon
- Call service node turning on the light
- Trigger node waiting two minutes
- Current state node confirming no motion
- Call service node turning the light off
That sounds simple in text, but visually it becomes even clearer. You can literally see the event travelling through the flow. If something fails, the debug sidebar usually tells you where.
Three Useful Automation Examples
1. Washing machine finished alert
Pair Node-RED with a power-monitoring smart plug. Trigger when the washing machine's power draw rises above a threshold, then wait until it drops below another threshold for several minutes. Finally, send a notification. Node-RED handles this sort of stateful logic beautifully.
2. Presence-based welcome home scene
Use person entities, sun state, and front door contact sensors together. If someone arrives home after dark and the house is currently empty, turn on hallway lights, set the thermostat comfort mode, and announce a short message on a speaker. Branching like this is where Node-RED feels elegant.
3. Bathroom fan automation
Combine humidity rise, occupancy, and a minimum runtime timer. Native automations can do this, but the logic gets messy quickly. In Node-RED, you can visually separate the triggers, thresholds, and timer rules.
When Should You Use Node-RED?
Use Node-RED when:
- The automation has several branches or exception paths
- You want to visualise state changes and timing
- You prefer debugging in a flow UI
- You are building routines that will change frequently
Stick with Home Assistant's native automations when:
- The rule is simple and unlikely to grow
- You want everything managed in one interface
- You are sharing maintenance with less technical household members
In other words, Node-RED is not "better" across the board. It is better for a particular style of automation work.
Tips for Beginners
- Name nodes clearly so future-you understands the flow
- Use comment nodes to explain intent
- Build in small modules rather than one giant spaghetti flow
- Keep a few debug nodes around while testing
- Use Home Assistant helpers for settings you may want to change later
If you want a simple dedicated box for Home Assistant and add-ons like Node-RED, Home Assistant Green remains one of the easiest options to recommend.
Home Assistant Green
A low-fuss way to run Home Assistant, dashboards, and add-ons like Node-RED without building your own server.
Check Price on Amazon →Final Verdict
Node-RED is still one of the best tools for building understandable, powerful Home Assistant automations. It rewards people who think visually and want more control over timing and logic. Start with one useful flow, get comfortable with the core nodes, and you will quickly see why so many Home Assistant enthusiasts still swear by it.
SmartWired participates in the Amazon Associates Programme. We may earn a commission from qualifying purchases at no extra cost to you.