Skip to content

Guide

Node-RED Dashboard 2.0 Tutorial: Install, Buttons, Switches, Gauges and Charts

Install FlowFuse Dashboard (Node-RED Dashboard 2.0), create a responsive page, and connect a button, switch and gauge to real flow messages. Includes package naming, a first working layout, troubleshooting and migration guidance from the deprecated legacy dashboard.

  • 5 min read
  • Updated November 1, 2026
Node-RED Dashboard 2.0 Tutorial: Install, Buttons, Switches, Gauges and Charts

Node-RED wires devices and services together; Dashboard 2.0 gives those flows a face: buttons, switches, sliders, gauges and charts that open in any browser, phone included. It's maintained by FlowFuse and replaces the old node-red-dashboard, which is deprecated.

Quick answer: in the Node-RED editor open Menu → Manage palette → Install, search for @flowfuse/node-red-dashboard and install it. Drag a button, switch or gauge node onto the canvas, give it a group (the first widget creates a dashboard, page and group for you), Deploy, and open http://<node-red-host>:1880/dashboard. Widgets send and receive ordinary msg.payload messages, so they connect to any flow, including MQTT to an ESP32.

Below: installing, how pages and groups work, each core widget with the exact message it sends, a live chart, a complete ESP32 control panel over MQTT with real feedback, adding a login, and migrating from the old dashboard.

Before You Install

You need Node-RED running and its editor open; see install Node-RED on the Raspberry Pi 5 or on Windows. Dashboard 2.0 needs Node-RED 3.0 or newer. Check your version at the bottom of the editor's main menu.

If you already use the old dashboard, you can install Dashboard 2.0 alongside it: the old one lives at /ui and the new one at /dashboard, so you can rebuild your screens without breaking the running ones. Export a backup of your flows first (Menu → Export → All flows → Download).

1. Install Dashboard 2.0

From the editor: Menu (☰) → Manage palette → Install tab → search @flowfuse/node-red-dashboard → Install. Check the full name: the similar-looking node-red-dashboard is the old, deprecated package. A new dashboard 2 section appears in the node palette.

From the command line (useful on a headless Pi):

terminal
cd ~/.node-red
npm install @flowfuse/node-red-dashboard
sudo systemctl restart nodered      # Raspberry Pi; on Windows, stop and restart node-red

2. How a Dashboard Is Organised

Every widget belongs to a group, every group to a page, and every page to the dashboard:

LevelWhat it isExample
Dashboard (ui-base)The whole app, served at /dashboardMy Home
Page (ui-page)One screen, listed in the side menuLiving room
Group (ui-group)A card on the page holding related widgetsClimate
WidgetA button, gauge, chart, etc.Temperature gauge

When you open your first widget, pick Add new ui-group and click through: Node-RED creates the dashboard and a page for you. Pages can use a Grid layout (12 responsive columns, the default and the best choice for phones), Fixed (set pixel widths), Notebook (a centred column up to 1024 px, good for reports) or Tabs. The dashboard's navigation menu can collapse, stay fixed, shrink to icons, slide over the content or be hidden entirely, and a theme (ui-theme) sets the colours for each page. Each group has a width in columns; a page is 12 columns wide, so two groups of width 6 sit side by side on a laptop and stack on a phone.

The Dashboard 2.0 sidebar tab in the editor (the chart icon on the right) shows the whole tree and has a button to open the dashboard.

3. Your First Widgets

Wire each widget to a debug node first, Deploy, use the widget in the dashboard tab, and read the exact message in the Debug sidebar. Then connect the real flow.

WidgetSends when usedAccepts on its input
buttonmsg.payload set in its Payload field (default: nothing set, so set one, e.g. the string toggle)A message to its input clicks it from the flow
switchtrue when turned on, false when off (changeable to on/off, 1/0, etc.)A matching value sets its position
sliderA number between its min and maxA number moves the slider
gaugeNothingA number shows on the gauge
textNothingAny value, shown as text
chartNothingNumbers, added as points over time

Button

Set Payload to the string toggle and Topic to lamp. Every click sends { topic: "lamp", payload: "toggle" }.

Switch

By default it sends true and false. If your device expects ON and OFF, change the switch's On Payload and Off Payload to those strings rather than converting them later. Leave Pass through off for device controls; the reason is in section 5.

4. A Live Gauge and Chart

Simulate a sensor first, so you know the display works before any hardware is involved:

  1. Add an inject node set to repeat every 5 seconds.
  2. Wire it to a function node containing:
script.js
msg.payload = Math.round((20 + Math.random() * 10) * 10) / 10;   // 20.0-30.0
msg.topic = "temperature";
return msg;
  1. Wire the function to a gauge: type half gauge, label Temperature, units °C, range 0 to 50, and segments at 0 (blue), 18 (green) and 28 (red) so the colour shows comfort at a glance.
  2. Wire the same function to a chart: type line, x-axis timescale. Each number becomes a point; msg.topic names the line, so readings from several sensors with different topics appear as separate lines on one chart.
  3. Add a text widget fed by a change node that sets msg.payload to the current time, labelled Last update, so you can tell a live value from a frozen one.

Deploy and watch the gauge and chart update every 5 seconds. Charts keep points only in memory: they reset when Node-RED restarts. For long-term history, log to a database such as InfluxDB and chart it in Grafana; see Node-RED, InfluxDB and Grafana.

5. A Real Control Panel: ESP32 over MQTT

The classic mistake with dashboard switches is to treat a click as proof that the device changed. If the ESP32 is offline, the switch flips anyway and lies. The fix is to send the command one way and show the device's reported state the other way:

FlowNodesTopic
Commandswitch → mqtt outhome/livingroom/lamp/set
Feedbackmqtt in → switch inputhome/livingroom/lamp/state
Sensormqtt in → json → gauge and charthome/livingroom/climate

How it behaves:

  • The switch sends ON or OFF to .../set. The ESP32 switches the lamp and then publishes its real state to .../state (retained).
  • That state message goes into the same switch's input, with Pass through off, so it moves the switch to match the device without sending another command.
  • If the ESP32 never answers, the switch stays where the device really is.
  • For a sensor sending JSON such as {"temperature":24.6,"humidity":51}, a json node turns it into an object, and a change node sets msg.payload to msg.payload.temperature before the gauge.

Add a text widget for the device's online/offline status, fed by its Last Will topic (for example home/livingroom/status), so you can see when it's gone. The ESP32 side, including retained state and LWT, is in ESP32 MQTT retained messages and LWT and control an ESP32 LED with Node-RED and MQTT. A finished multi-relay version is the 8-channel relay dashboard, and a sensor version is the ESP32 DHT11 and BMP280 dashboard.

Don't make a web dashboard the only way to switch off anything dangerous, such as heaters, pumps or mains loads. Keep a physical switch and local safety limits in the device itself.

Shared or Per-User Data

By default every viewer sees the same dashboard: move a slider on your phone and it moves on every other open screen. That's what you want for device controls, since everyone should see the lamp's real state. Some widgets can instead respond to one viewer only: enable Accept Client Data for the node in the Dashboard 2.0 sidebar, and messages then carry msg._client identifying the browser tab. Send a reply with the same msg._client and only that viewer sees it, which is useful for a per-user form or a "your last action" message. The ui-event node fires when someone opens a page, so you can send that person the latest values straight away.

6. Add a Login

Out of the box, anyone who can reach port 1880 can open the dashboard and press its buttons. To require a username and password for the dashboard, generate a password hash:

terminal
node-red admin hash-pw

Then add this to ~/.node-red/settings.js (search for the commented httpNodeAuth line) and restart Node-RED:

script.js
httpNodeAuth: { user: "family", pass: "PASTE-THE-HASH-HERE" },

This protects the dashboard (and any http in endpoints). Protect the editor separately with adminAuth, as shown in the Node-RED on Windows guide. To use the dashboard away from home, connect through a VPN such as Tailscale rather than port-forwarding 1880; more in securing Node-RED.

Troubleshooting

ProblemFix
No dashboard 2 nodes in the paletteCheck the installed name is @flowfuse/node-red-dashboard; reload the editor; check the Node-RED log for install errors
/dashboard shows Cannot GET or a blank pageDeploy at least one widget that belongs to a group; check you're on the right host and port
Widget missing from the pageIt has no group, or its group belongs to a different page
Gauge stays at 0 or blankmsg.payload isn't a number; check it in Debug, add a json or change node
Switch sends a command when its state is updatedPass through is on; turn it off for device controls
Chart empty after a restartNormal: charts keep data in memory only. Log to a database for history
Old /ui dashboard still showingThe legacy dashboard is a separate app; open /dashboard for the new one

Migrating from the Old Dashboard

The legacy node-red-dashboard (the /ui one) is deprecated and no longer receives updates. Its nodes don't convert automatically: Dashboard 2.0 uses different node types, so you rebuild each screen. The sensible order:

  1. Export a backup of all flows.
  2. Install Dashboard 2.0 alongside the old dashboard.
  3. Rebuild one page at a time, wiring new widgets to the same flows.
  4. Compare both dashboards side by side, especially switches and their feedback.
  5. When everything matches, delete the old ui_ nodes and uninstall node-red-dashboard.

FlowFuse's migration guide lists which old widgets have direct equivalents.

FAQ

What's the Node-RED dashboard URL? http://<host>:1880/dashboard for Dashboard 2.0 (the old dashboard used /ui).

Is Dashboard 2.0 free? Yes. It's open source and runs on any Node-RED install, not only on FlowFuse's hosted service.

Does it work on a phone? Yes: use a Grid page layout and it adapts to small screens. Open the same URL in the phone's browser on your Wi-Fi.

Can I make custom widgets? Yes, with the template node, which accepts Vue components and HTML.

Should I still use the old node-red-dashboard? Not for new projects: it's deprecated and won't get fixes.

What to Build Next

  1. Node-RED with MQTT and Mosquitto: connect the dashboard to real devices
  2. Control an ESP32 LED with Node-RED and MQTT: the switch-and-feedback pattern on real hardware
  3. ESP32 DHT11 and BMP280 dashboard: gauges and charts from live sensors
  4. Node-RED schedules and automations: make the dashboard act on its own

New to Node-RED itself? Start with nodes, flows and msg.payload.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.