Monnit Edge Flows — Node-RED Basics

Node-RED basics

Official docs (bookmark these):

  • Getting started: https://nodered.org/docs/getting-started/
  • Using the editor: https://nodered.org/docs/user-guide/editor/
  • Working with messages: https://nodered.org/docs/user-guide/messages
  • Full docs home: https://nodered.org/docs/

1. What Node-RED is

Node-RED is a flow editor. You connect boxes (nodes) with lines (wires).

Messages travel left → right along wires when the flow is Deployed.

A tab (top of the canvas: 00, 01, 02…) is one page of a flow.



2. Parts of the screen (every item)

Left — Palette

  • Lists every node type you can add (common, network, Monnit, …)
  • Search box at the top: type a name (e.g. debug , inject )
  • Drag a node onto the canvas to add it
  • Categories can be collapsed/expanded

Center — Canvas (workspace)

  • Where your flow lives
  • Pan: click empty space and drag, or use scrollbars
  • Zoom: browser zoom or editor zoom controls (if shown)
  • Select: click a node (it highlights)
  • Move: drag a selected node
  • Wire: drag from the small circle on the right of a node to the circle on the left of another
  • Delete wire: click the wire, press Delete
  • Delete node: select it, press Delete
  • Tabs along the top switch between flow pages

Top bar

  • menu (☰): Import / Export / Search flows / Settings / Keyboard shortcuts
  • Deploy (red button): applies your changes — nothing new runs until you Deploy
  • Deploy options (dropdown on the button): usually Full is fine for this lab

Icon / panel What it is for
info Help text for the selected node (read this when stuck)
help Longer documentation for that node type
debug Live messages from debug nodes (most important for testing)
config Shared config nodes (brokers, BACnet networks, …)

If the sidebar is hidden, use the tabs/icons on the far right edge to open it.


3. Nodes, wires, and messages

Term Meaning
Node One step (inject, debug, BACnet, …)
Wire Path a message takes between nodes
Message (msg ) A JavaScript object; almost always has msg.payload
msg.topic Optional string label (often a sensor id)
Status Text under a node after Deploy (green/yellow/red hints)
Config node Shared settings opened via a pencil icon inside a node dialog

4. How to configure a node (every time)

  1. Double-click the node on the canvas
  2. A dialog opens with that node’s settings
  3. Change fields (dropdowns, checkboxes, text)
  4. Click Done (saves into the editor, not yet live)
  5. Click Deploy (makes it live on the Edge)

Pencil icon next to a field (Network, Broker, …) opens a config node — ports, passwords, device IDs. Edit those carefully, then UpdateDoneDeploy.

Cancel discards dialog changes. Delete in the dialog removes the node.



5. Deploy — why it matters

  • Edits on the canvas are drafts until Deploy
  • After Deploy, heartbeats start, listeners bind ports, MQTT connects
  • If something “does nothing,” you usually forgot Deploy
  • A successful Deploy shows a short confirmation; errors appear in notifications / log


6. Debug — how to see data (detail)

Add / use a debug node

  1. Palette → commondebug (or use the one on this tab)
  2. Wire any node’s outputdebug input
  3. Double-click the debug node:
Setting What to choose
Output msg.payload  = only the payload; complete message object = everything (payload , topic , …)
to sidebar checked — show in the Debug panel
to console optional — also prints in the Node-RED log
Name optional label so you know which debug fired
  1. DoneDeploy

Open the Debug panel

  1. Right sidebar → click the bug icon (debug)
  2. New messages appear as they flow (newest at the bottom or top depending on version)
  3. Click a message to expand objects/arrays
  4. Use the Debug panel toolbar to:

- Clear old messages

- Filter (all nodes vs current flow) — if you see nothing, set filter to all or open the correct tab

- Pause/open as needed

What “good” looks like

  • After you click Click me below, Debug shows one string message
  • Later tabs: Debug shows sensor objects with sensorId  / readings

Debug shows nothing?

  1. Did you Deploy?
  2. Is the debug node wired from something that actually sends?
  3. Is to sidebar enabled on the debug node?
  4. Is the Debug panel filter hiding this flow?
  5. Is the upstream node stopped/error (red status)?

7. Practice

  1. Click Deploy
  2. Click the small square on the left of Click me (that button fires one message)
  3. Open Debug on the right — read the text
  4. Double-click Click me — change the payload text → Done → Deploy → click again
  5. Double-click Debug sidebar — switch Output to complete message object → Done → Deploy → click inject again → expand the message in Debug

When that feels comfortable, open tab 02 Path.


8. Official help

More depth, screenshots, and keyboard shortcuts:

https://nodered.org/docs/getting-started/

https://nodered.org/docs/user-guide/editor/

https://nodered.org/docs/user-guide/messages

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.