Max Supervibe

Help Node-RED

Node-RED, explained simply

Node-RED is the easiest way I know to make different devices and services talk to each other: KNX, cameras, lights, alarms, Home Assistant, Telegram. You do not write code line by line: you wire blocks together, and each block does one thing.

What Node-RED is

Node-RED is free and open source software, born at IBM and now looked after by the OpenJS Foundation. You use it in the browser: on the left are the nodes, the blocks; in the middle you drag them and wire them together, and what you build is called a flow.

Messages travel along the wires. The main value of a message is in msg.payload: a node receives it, does its job and passes it on. A KNX button pressed, a camera seeing motion, a time of day: everything becomes a message you can filter, combine and send wherever you want.

It runs on almost anything: a Raspberry Pi, an old PC, a server, a NAS with Docker or inside Home Assistant. I use it every day, at home and in my installations, and that is why I wrote the nodes you find below.

How to install it

Pick the way that suits you. In every case, you then open the browser at http://localhost:1880 (or the device’s address, e.g. http://192.168.1.50:1880) and the editor is there.

Raspberry Pi, Debian or Ubuntu

The way I recommend for an installation that stays on. The official script installs Node.js and Node-RED and sets it up as a service.

bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/install-update-nodered-deb)
sudo systemctl enable nodered.service

The second line makes it start by itself at boot.

Computer (Windows, macOS, Linux)

First install Node.js (Node-RED 5 needs version 22.9 or newer: get the LTS from nodejs.org), then in a terminal:

npm install -g node-red
node-red

On macOS and Linux, put sudo before the first line if needed. Not on Windows.

Docker

Handy on a NAS or a server. Your flows stay in the node_red_data volume even when you update the container.

docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red

Home Assistant

If you already use Home Assistant, Node-RED is there as a community add-on: find it in the add-on store, install it and open it from the sidebar.

Adding nodes

Extra nodes are installed from the editor: menu ☰ at the top right → Manage palette → Install tab, search for the name (for example knx-ultimate) and press install. The official catalogue has thousands of nodes, mine included.

The Node-RED Manage palette window searching for knx-ultimate: node-red-contrib-knx-ultimate 8.4.2, already installed

Your first flow

  1. Drag an inject, a function and a debug node and wire them in a row.
  2. In the inject, choose when it starts: a time, an interval, or only when you press its button.
  3. In the function, write what to do with the message, for example msg.payload = "Good morning!"; return msg;
  4. Press Deploy at the top right: the flow is running. The result appears in the debug panel.
A flow in Node-RED: inject “every morning at 7”, function “prepare the message”, debug, with the good morning message in the debug panel

A real example, with my nodes

When the entrance camera sees motion and the KNX twilight sensor says it is night, the garden lights go on via KNX and a Hue light in the living room, and the event goes into a log. Five minutes of work, no code: Hikvision Ultimate, Boolean Logic Ultimate, KNX Ultimate and Hue Ultimate.

Smart home flow: entrance motion (Hikvision) and twilight (KNX) go into a Boolean Logic AND that turns on the garden lights (KNX), a Hue light and an event log

My nodes

All free and open source, each with its full guide.

KNX UltimateNode-RED and the KNX bus: nodes, gateways, ETS import, Hue and Matter.6 languagesHue UltimatePhilips Hue lights, sensors and buttons in Node-RED.6 languagesMatter UltimateControl Matter devices or expose your own.6 languagesHikvision UltimateA native set of nodes for Hikvision (and compatible) Cameras, Alarms, Radars, NVR, Doorbells, etc.EnglishBoolean Logic UltimateA set of Node-RED enhanced boolean logic and utility nodes, flow interruption, blinker, debouncer, invert, filter, toggle etc.., with persistent values after reboot. Compatible also with Homeassistant values.EnglishTTS UltimateTransforms text into speech for Sonos, Google Cast, DLNA/UPnP and AirPlay 2/HomePod playback, or generates audio files for third-party nodes. Supports Google, Google Cloud TTS, ElevenLabs, Voice.ai and custom audio files. Update of the popular SonosPollyTTS node.EnglishSIA UltimateConnect your SIA-DCS compatible alarm system to node-red. It works with Ajax System too.EnglishUniFi UltimateNode-RED nodes for Ubiquiti UniFi integrations, including UniFi Protect, UniFi Access, and UniFi Network.EnglishAlarm UltimateAlarm System node for Node-RED. Integrates also with Home Assistant, MQTT, KNX-Ultimate. Completed with web interface for fast configuration and control. With zone import wizard.EnglishCerebrum UltimateCerebrum Ultimate creates editable JavaScript home automations from user requests, with conversational clarification and local execution for Node-RED.EnglishAlfaSinapsi UltimateNodi Node-RED per collegare Sinapsi Alfa e creare un controller carichi. In alternativa, e' possibile usare l'integrazione nativa con il load controller di KNX-Ultimate.Italiano

Libraries

Watch my Node-RED videos

News

Let me know when something new comes out

New products, major versions and the odd special video. Just a few emails a year, never shared with anyone.

Emails in