Senzorv1.0.1

The window

The parts of the Senzor window and what each one shows.

Start the GUI with a project file, or without one to begin with an empty project:

# Open a project
senzor examples/showcase.toml

# Or start with an empty project
senzor

# Open a project with MCP already on, so AI agents can connect
senzor --mcp examples/showcase.toml

--mcp turns on the MCP switch in the settings at launch, and --mcp-port <PORT> picks another port than the one in the settings, 18830 unless you changed it (and turns MCP on too). Neither changes what the settings remember. See When an agent is connected.

The Senzor window with the showcase project running and instance office-0 selected

The window has five parts: the top bar, the left panel with your devices and templates, the detail panel in the middle, the bottom panel with the message log and the problems, and the status bar along the bottom edge. You can resize the left and bottom panels by dragging their edges.

Top bar

Each button shows an icon before its name; in a narrow window, the buttons continue on a second row. From left to right:

  • The project's name. This is the file name, or untitled for a project you have not saved yet. A * after the name means there are unsaved changes. The window title shows the same, for example Senzor — showcase.toml*.
  • Broker: localhost:1883 shows the broker's host and port. Click it to open Project settings: the broker settings, where you also choose MQTT 5 or 3.1.1, and the seed.
  • New, Open, Save and Save as work on the project file, the clock next to Open lists the recent projects, and the books next to the clock list the examples. While there are unsaved changes, Save is filled with the accent colour; hover over it to read Save the unsaved changes. See Files.
  • TOML, after Save as, shows the project file as text to edit by hand. See Edit the file as text.
  • Undo and Redo, the two curved arrows after TOML, take back an edit to the project and apply it again. See Undo and redo.
  • Start all and Stop all start and stop every device. See Running devices.
  • starting devices… can appear for a moment after you open another project or start a new one. Hover over it to read Waiting for the previous project's devices to go offline: the new project's devices start once the old ones are offline (see Autostart).
  • The gear, at the right end, opens the settings: the theme, the zoom, and the MCP switch that lets AI agents control the window. Hover over it to read Settings.
  • A robot in the accent colour appears next to the gear while MCP is on, so you can see that AI agents can control the window. Hover over it for the address they connect to, and click it to open the settings, where you turn MCP off.

Keyboard shortcuts

KeysDoes
Ctrl+NNew
Ctrl+OOpen
Ctrl+SSave
Ctrl+Shift+SSave as
Ctrl+ZUndo
Ctrl+Shift+Z or Ctrl+YRedo
F5Start all
Shift+F5Stop all
Ctrl+CommaOpen the settings
Ctrl+KOpen the command palette
Ctrl+FShow the message log and put the cursor in its Filter
DeleteDelete the selected device or template; Ctrl+Z brings it back
Ctrl++ or Ctrl+=Zoom in
Ctrl+-Zoom out
Ctrl+0Reset the zoom to 100 %
Ctrl+QClose the window, asking about unsaved changes first

On macOS, use Cmd instead of Ctrl. Hover over a button in the top bar to see its shortcut. While a dialog is open, such as Unsaved changes, the shortcuts do nothing until you answer it.

Command palette

Ctrl+K opens the command palette, a box over the window where you type what you want instead of looking for it. It finds the window's actions, such as Start all, Save as…, Project settings or Clear retained messages…, and every device, instance and template of the project, the built-in templates and the examples. When a newer version of Senzor is out, it also finds Update: Senzor 1.1.0 is out, which opens the release's page. Type part of a name: every word you type must appear in it, in any case, so office 3 finds office-3. The kind of each match, such as Action or Instance, shows on the right.

Press Enter to run the highlighted match, or click one; Up and Down move the highlight. Choosing a device, instance or template selects it, switching the left panel's tab if needed. Escape or a click outside the box closes it.

Undo and redo

Undo takes back the latest edit to the project, and Redo applies it again. Each edit is one step: adding or removing a device or template, a rename, or a change in a form. What you type into one field counts as one step until you leave the field. Senzor keeps the last 100 steps; a new edit after an undo drops what you could have redone. Undoing back to the saved file removes the * from the title.

While you are typing into a field, Ctrl+Z and Ctrl+Y belong to the field and take back what you typed there; the project follows. Leave the field to undo whole edits again. Delete also belongs to the field while you type: it deletes text, not the selected device.

Edits an AI agent makes over MCP are steps too, so Ctrl+Z also takes back the agent's latest edit. Opening a project or starting a new one starts a fresh history; saving keeps it.

Left panel

The left panel has two tabs.

Devices lists every device in the project, with its instances under it. A device with problems lists only its instances that still run, as orphans. A device shows its ID and instance count, such as office ×5. Each instance has a coloured dot for its status:

DotStatus
GreenOnline
AmberConnecting or Reconnecting
GreyStopped
RedFailed

Click a device or an instance to show it in the detail panel. Right-click it for a menu that starts, stops, restarts and kills it (Running devices). Add device adds a new device and selects it. The box with the magnifying glass above it finds devices and instances, and the menu next to it shows only the instances in one state; see The device tree.

Templates lists the templates. Built-in lists the templates that ship with Senzor (co2, temperature, humidity). Project lists the project's own templates; right-click one and choose Duplicate to copy it. Add template adds a new template to the project and selects it.

Detail panel

The middle of the window shows what you selected on the left:

  • An instance: its status, counters and live values, where you can also pin values. See Instance view.
  • A device: the device editor. See Editing devices.
  • A project template: the template editor with a live preview. See Editing templates.
  • A built-in template: a read-only view with Copy into project….

With nothing selected it says Select a device, an instance or a template on the left.

In the editors and the project settings, a ? after a setting's name explains the setting when you hover over it; click it to open the part of this documentation that covers it.

A new project that is still blank shows the welcome screen instead. That is how the window starts without a file, and what New gives. Welcome to Senzor offers Add your first device, Open a project and Set the broker, the examples, your recent projects, and links to the Quick start guide and this documentation. The welcome screen goes away once the project has a device or a template, a file, or unsaved changes.

Bottom panel

The bottom panel has two tabs: Message log and Problems.

Message log

The message log listing the messages the showcase devices published

The message log lists the messages your instances publish, newest at the bottom, in columns under a header row:

  • Time: in UTC with milliseconds, for example 14:02:11.123Z.
  • Instance: the instance ID.
  • Topic: a topic longer than 40 characters is cut off with ….
  • QoS: 0, 1 or 2, followed by R when the message was retained.
  • Payload: line breaks and runs of spaces become one space, and a payload longer than 200 characters is cut off with …. A binary payload shows as its encoding, its size and its first 16 bytes in hex, such as hex, 5 bytes: 01 00 d7 00 2d.

The log keeps the last 1,000 messages of all instances together. It shows the messages your templates define, not the online and offline availability messages. While you are scrolled to the bottom, the list follows new messages.

  • Filter shows only the rows whose topic contains the text you type. The match is case-sensitive. Ctrl+F shows the message log and puts the cursor in the box.
  • Click an instance ID in the log to show only that instance's messages. A button with the instance ID and ✕ appears next to Filter; click it to show every instance again.
  • Pause freezes the list so you can read it while the devices keep publishing. Resume shows the live log again.
  • Clear empties the list. Messages published afterwards show as usual; a paused list stays paused and empty until you resume. Clearing only changes what the window shows: the MCP tool get_messages still reads the messages from before.
  • Export… saves the messages the log shows, after Clear, Filter and the instance, as a CSV file with the columns time, instance, topic, qos, retained, payload and encoding. The time includes the date, for example 2026-11-07T18:02:51.079Z, and the payload is saved whole. encoding is text for a text payload; for a binary one it is hex, base64, cbor or protobuf, and payload holds the bytes sent as hex digits without spaces, such as 0100d7002d.

Click a message's time, topic or payload to see it in full on the right: Message lists its time, instance, topic, QoS, whether it was retained and its MQTT 5 properties, and Payload shows the payload whole, with JSON indented. Copy payload copies the payload as it was sent. For a binary payload, Payload names its encoding and size and shows its bytes as a hex dump, 16 bytes a line after their offset, and Rendered text below shows the text they were encoded from; Copy as hex copies the bytes as hex digits. Click the message again, or the ✕ next to Message, to close it.

Problems

The Problems tab listing a validation error

Senzor validates the project after every edit. While the project is valid, the tab reads Problems and shows No problems. When something is wrong, the tab's label turns red and counts the problems, for example Problems (2).

Each problem names what it is about, then what is wrong, for example:

device `bad`: unknown template `nope`

Click a problem to go to it: a device or template problem selects that device or template (switching the left tab if needed), and a broker problem opens the broker settings. When the problem is about one value, such as a device's Instance IDs, the cursor goes into that box.

In the editors, a problem with one value shows under that value's box, which gets a red outline. Problems that no single box holds, such as a template whose topic the device's params break, show in red under the editor's heading.

A device with problems cannot start, and neither can the devices of a template with problems. A broker problem stops every device from starting. Instances that were already running keep running with their last valid settings; see Editing while running. The validation errors reference explains each message.

Status bar

The status bar along the bottom edge of the window shows, from the left:

  • The broker's host and port, then connected in green once an instance is online, cannot connect in red while instances are reconnecting or failed and none is online, connecting… while they connect, or not connected while nothing runs. Click it to open the broker settings.
  • How many instances are online, connecting, reconnecting and failed, for example 11 online. A state with no instances is left out; with nothing running, it reads nothing running.
  • How many messages per second the instances publish, counted over the last 5 seconds, for example 4.6 msg/s.
  • When a newer version of Senzor is out, Senzor 1.1.0 is out in the colour of links, with the new version. Click it to open the release's page on GitHub, with what is new and the downloads. Senzor asks GitHub at most once a day; see Updates for what is sent and how to turn it off.
  • At the right end, MCP off, or MCP on :18830 with the port while AI agents can control the window. Click it to open the settings.

When an agent is connected

Turn on the MCP switch in the settings to let an agent connect. While MCP is on, a robot shows next to the gear at the right end of the top bar.

While MCP is on, an agent such as Claude Code works on the same project as you. Its changes appear in the window right away, and its edits mark the project as unsaved like yours do. Text you are still typing into a field is dropped when the agent edits the project. While a dialog is open, the agent cannot save, open or start a new project. See Working together in the GUI.

The showcase project

The screenshots in this guide show examples/showcase.toml: four devices, three of them on the project's own templates office-air and door, and lab on the built-in co2 template. Open it to follow along.

examples/showcase.toml
# The demo project the documentation's screenshots are taken from.
[broker]
host = "localhost"
port = 1883

[simulation]
seed = 42

[[templates]]
id = "office-air"
interval = "2s"
availability = { topic = "b/{{ room }}/{{ device_id }}/status", online = "online", offline = "offline" }

[[templates.messages]]
topic = "b/{{ room }}/{{ device_id }}/state"
payload = '{"co2": {{ co2 | round | int }}, "temp": {{ temp | round(1) }}, "ts": {{ now_ms }}}'
# MQTT 5 properties: consumers can filter on the room without parsing the payload.
content_type = "application/json"
user_properties = { room = "{{ room }}" }

[templates.fields.co2]
generator = "random_walk"
start = 650
min = 400
max = 2000
step = 25
unit = "ppm"
name = "CO2"

[templates.fields.temp]
generator = "sine"
center = 22
amplitude = 1.5
period = "1h"
noise = 0.1
unit = "°C"
name = "Temperature"

[[templates]]
id = "door"
interval = "3s"
availability = { topic = "b/{{ room }}/{{ device_id }}/status", online = "online", offline = "offline" }

[[templates.messages]]
topic = "b/{{ room }}/{{ device_id }}/contact"
payload = '{"open": {{ open | tojson }}}'

[templates.fields.open]
generator = "sequence"
values = [false, false, true, false]

[[devices]]
id = "office"
template = "office-air"
count = 5
params = { room = "office" }
autostart = true

[[devices]]
id = "meeting"
template = "office-air"
count = 2
params = { room = "meeting" }
autostart = true
fields.co2 = { start = 1100 }

[[devices]]
id = "front-door"
template = "door"
params = { room = "hall" }
autostart = true

[[devices]]
id = "lab"
template = "co2"
count = 3
autostart = true

On this page