MQTT topics
The table lists every topic the hub reads or writes, with its default prefix. "In" means the hub subscribes; "out" means the hub publishes. A prefix is shown in <angle brackets> or as its default, and the last column names the setting that moves it (see the Settings reference). Settings in the last column are written [section] field: [topics], [watchdog.gateway] and [watchdog.acl] are in the advanced settings, [groups] and [alarm] too (see the Settings reference); [weather] is Settings → Weather, [solcast] Settings → Solar forecast, [frigate] Settings → Cameras, [push] Settings → Notifications, [climate] the Climate card of the setup wizard; [mqtt] send_ha_birth and ha_status_topic are in the mqtt object of data/hub.json. The broker user (the MQTT user of Settings → Broker) needs read and/or write on each topic accordingly.
| Topic | Direction | Retained | Payload | Moved by | Backed up |
|---|---|---|---|---|---|
<discovery prefix>/<component>/[<node_id>/]<object_id>/config, default nidoo/… | in | yes (by the publisher) | Home Assistant discovery JSON; an empty payload removes the entity | [topics] discovery_prefixes | — |
| Device state topics named by the discovery configs | in | by the device | Device state; subscribed on demand | discovery | — |
| Device command topics named by the discovery configs | out | only when the config says "retain": true | The device's command payload | discovery | — |
<z2m_base>/bridge/devices, /info, /state | in | yes (by Zigbee2MQTT) | Zigbee2MQTT device list, bridge info and state | [topics] z2m_base | — |
<z2m_base>/bridge/request/backup | out | no | {"transaction": "<id>"}, asking Zigbee2MQTT for its own backup; sent by a backup that includes Zigbee2MQTT data, once per backup | [topics] z2m_base | — |
<z2m_base>/bridge/response/backup | in | no | Zigbee2MQTT's answer: {"transaction", "status", "data": {"zip": "<base64>"}} or status: "error"; never subscribed by the hub's main connection (its packet limit is smaller than a big backup); the backup's own connection subscribes while it waits, and only the answer matching the transaction is used | [topics] z2m_base | — |
<ha_status_topic>, default homeassistant/status | out | no | online, once per connect | [mqtt] send_ha_birth, [mqtt] ha_status_topic | — |
nidoo/ui/<entity id> | in, out | yes | The entity's override JSON; empty clears it | [topics] ui_prefix | yes |
nidoo/ui/_areas | in, out | yes | The declared rooms ({"areas": […]}) | [topics] ui_prefix | yes |
nidoo/ui/_home | in, out | yes | The home settings ({"eco_setpoint", "mode_entity", "indoor_entity"}); an empty payload means defaults | [topics] ui_prefix | yes |
nidoo/ui/_types | out | yes | The whole type table | [topics] ui_prefix | no |
nidoo/ui/dashboards/<id> | in, out | yes | A dashboard definition; empty removes it | [topics] ui_prefix | yes |
nidoo/ui/ambiances/<id> | in, out | yes | An ambiance definition; empty deletes it | [topics] ui_prefix | yes |
nidoo/automation/<flow id> | in, out | yes | A flow document; empty removes it | [topics] automation_prefix | yes |
nidoo/automation/<flow id>/fired/<node id> | in, out | yes | {"due": <unix seconds>}: the time a trigger with catch-up was last due. Cleared when its flow or node goes, or its catch-up is turned off | [topics] automation_prefix | no |
nidoo/flow_labels | in, out | yes | The flow label catalog ({"labels": […], "choices": […]}), written by the hub only | [topics] flow_labels | yes |
<first discovery prefix>/<switch|number|button|select>/virtual/<id>/config | out | yes | Discovery of a virtual entity | [topics] discovery_prefixes (first entry) | yes |
<first discovery prefix>/virtual/<id> | in, out | yes for a switch, number or select; no for a button | ON / OFF, a number, an option name, or PRESS; the state and the command topic | [topics] discovery_prefixes (first entry) | no |
<first discovery prefix>/<sensor|binary_sensor>/weather/<key>/config, <first discovery prefix>/weather/<key>, <first discovery prefix>/weather/availability | out | yes | Discovery of a weather entity (19 keys, one device); each value: a number, an enum name or ON / OFF, or None (unknown) once the source stops reporting a value that was published; availability: online once weather was fetched, offline before the first fetch and after an hour without one | [topics] discovery_prefixes (first entry), [weather] | no |
<first discovery prefix>/sensor/solar/<key>/config, <first discovery prefix>/solar/<key>, <first discovery prefix>/solar/availability | out | yes | Discovery of a solar forecast entity (10 keys, one device); each value: a number in kWh or kW, or an RFC 3339 UTC time for the peak time; availability: online once a forecast covers now, offline otherwise (see Solar forecast) | [topics] discovery_prefixes (first entry), [solcast] | no |
<first discovery prefix>/solar/cache | out, in | yes | The retained forecast and call count, so a restart does not spend calls; never the API key | [topics] discovery_prefixes (first entry), [solcast] | yes |
<first discovery prefix>/<component>/group/<id>/config, <first discovery prefix>/group/<id>, <first discovery prefix>/group/<id>/avail | in, out | yes | Discovery of a group entity; the combined state (commands arrive on the state topic as JSON); online on avail | [groups] enabled, [topics] discovery_prefixes | no |
<first discovery prefix>/group/<id>/definition | in, out | yes | {kind, name, members, hideMembers} | [groups] enabled | yes |
<first discovery prefix>/group/_migrated | in, out | yes | 1, the marker that the one-time room-group migration ran | [groups] enabled | yes |
<first discovery prefix>/binary_sensor/network/<id>/config, <first discovery prefix>/network/<id>, <first discovery prefix>/network/<id>/avail | out | yes | Discovery of a network watch entity; ON (connected) or OFF (disconnected), nothing until the first ping verdict; online, or offline while the watch is paused or the hub cannot ping | [network] enabled, [topics] discovery_prefixes | no |
<first discovery prefix>/network/<id>/definition | in, out | yes | {name, host, intervalS, enabled, area, device} | [network] enabled | yes |
nidoo/push/notification/<source> | in | no | An alert, v1 or legacy payload | [push] prefix | — |
nidoo/push/tokens/<installId> | in; out to clear | yes | {token, device_name, lang, updated_at}; empty unregisters. The hub publishes an empty payload to clear a dead token | [push] prefix | yes |
nidoo/push/responses | in (climate and alarm), out | no | {id, action, install_id, ts}, a tapped alert button | [push] prefix | — |
nidoo/push/history | in, out | yes | JSON array of the normalised alerts, newest first | [push] prefix | yes |
nidoo/climate/house | in, out | yes | The house settings document | [climate] prefix | yes |
nidoo/climate/zone/<zone>/settings | in, out | yes | The zone settings document | [climate] prefix | yes |
nidoo/climate/zone/<zone>/<doc> | in, out | yes | A zone runtime document, <doc> being proposal, override, decision or eco ({until, set_at}, the zone's eco until a date; the hub deletes it once ended) | [climate] prefix | no |
nidoo/climate/zone/<zone>/hold/set | in | no | A zone's boost: {"setpoint":22,"minutes":90} (or until, Unix seconds, instead of minutes) sets it; an empty payload ends it and keeps hand holds. A retained message is ignored | [climate] prefix | — |
<prefix>/settings (alarm) | in, out | yes | The alarm settings document; enabled defaults to false. Default prefix nidoo/alarm | [alarm] prefix | yes |
<prefix>/state, <prefix>/panel, <prefix>/panel/attributes (alarm) | in, out | yes | The alarm's runtime (state: state, mode, source, timers, motion hits, open sensors and the open alert); panel: the panel entity's state (disarmed, arming, armed_away, armed_home, armed_night, pending or triggered); panel/attributes: the panel's JSON attributes (source, since, deadline, cause, open_at_arm) | [alarm] prefix | no |
<prefix>/panel/set (alarm) | in | no | The panel's commands: ARM_AWAY, ARM_HOME, ARM_NIGHT or DISARM. A retained replay is never acted on. The hub cannot tell who published a command: any login allowed to publish here can disarm (the phone app's alarm buttons use this topic) | [alarm] prefix | — |
<first discovery prefix>/alarm_control_panel/alarm/house/config | out | yes | Discovery of the alarm panel, entity nidoo_alarm_house. Published while the alarm is on; an empty payload removes it | [topics] discovery_prefixes (first entry), [alarm] prefix | no |
nidoo-sound/speak | out | no | {"id", "url", "players"}: a sentence for the nidoo-sound service to fetch (url, /api/v1/assist/speech/<id>.wav on the hub) and say on the satellites listed by short id | — | — |
nidoo-sound/hold | out | no | {"id", "players", "for_ms"}: while someone talks to a satellite, the music of the listed satellites (short ids) is replaced by silence for for_ms (at most 60 000) unless refreshed; speech is still heard. for_ms: 0 releases that id. Never saved: a restart of nidoo-sound brings the music back | — | — |
nidoo-sound/spoken | in | no | {"id", "played"}: the sentence with clip id finished playing on its satellites (true, the instant its last sample plays) or was dropped (false) | — | — |
nidoo-sound/<sid>/volume, nidoo-sound/<sid>/volume/set | out, in | yes (by nidoo-sound) | The satellite's Music volume, 0–100; /set takes the same range. Its discovery entity nidoo_sound_<sid>_volume is the satellite's identity; the name of its override on nidoo/ui/nidoo_sound_<sid>_volume is read back by nidoo-sound as the satellite's name | — | — |
nidoo-sound/<sid>/speech, nidoo-sound/<sid>/speech/set | out, in | yes (by nidoo-sound) | The satellite's Speech volume, 0–100; /set takes the same range. Discovery entity nidoo_sound_<sid>_speech, folded into the Music volume | — | — |
nidoo-sound/<sid>/address | in | yes (by nidoo-sound) | The satellite's IPv4 address while it is connected (empty otherwise); its discovery entity is a diagnostic sensor folded into the satellite's Volume | — | — |
nidoo-sound/<sid>/remove/set | out | no | Any payload (the hub sends PRESS): nidoo-sound forgets the satellite, closes its connection and publishes empty retained payloads on its discovery configs, then on its nidoo-sound/<sid>/… state topics. A board still on the network reconnects as a new satellite | — | — |
<topic_prefix>/events, default frigate/events | in | no | Frigate event JSON; subscribed only with the bridge on | [frigate] bridge, [frigate] topic_prefix | — |
<prefix>/+, default encryption-gateway/health/+ | in | yes (by the gateway) | {"status": "ok" | "fail" | "config_error", …} per component | [watchdog.gateway] enabled, prefix | — |
$SYS/broker/log/# | in | no | Mosquitto log lines | [watchdog.acl] source = "topic", log_topic | — |
Notes
- Reserved sub-trees. Under a discovery prefix, the segments
ui,automation,virtual,push,weather,solar,networkandflow_labelsare reserved: never publish discovery there. A topic in them is never read as discovery and never shows underGET /api/v1/ignored. - Climate documents never end in
/config. They cannot be read as discovery. The hub subscribes to<prefix>/house,<prefix>/zone/+/+and<prefix>/zone/+/hold/set, never<prefix>/#.nidoo/push/responsesis always subscribed: a reply whose id starts withalarm-goes to the alarm, which disarms only on thedisarmreply to a trigger alert it sent that is still open (any other id is ignored), and the others (a tapped proposal button, for example) go to the climate engine when it is on. - Overlapping subscriptions. The hub subscribes to
<discovery prefix>/#,<z2m_base>/bridge/{state,info,devices}(notbridge/#, so a big backup answer never reaches the main connection),<ui_prefix>/#,<automation_prefix>/#and the flow label catalog topic (left out when one of those wildcards covers it, as the defaultnidoo/flow_labelsis undernidoo/#). A push filter that falls inside one of those wildcards (the defaultnidoo/push/…undernidoo/#) is left out, so the broker does not deliver a notification twice. - Backed up. The last column says whether a backup carries the topic:
yesfor definitions and user data,nofor runtime state and for discovery the hub republishes itself,—for topics that are not retained or that another service retains. Rows that bundle several topics of one kind (weather, solar values, group and network entities, the alarm's runtime) have one value for all of them. The list lives incrates/nidoo/src/backup/retained.rs, and a test keeps this column in step with it. - Alerts raised inside the hub (the Frigate bridge, watchdogs, flows, MCP) go to the push service in process, without the broker.
- Retained history.
nidoo/push/historyis the history itself: the hub adopts it at its first sync. - After each (re)connect the hub waits for its subscription to be acknowledged, then 2 s more for the retained tokens, before it sends; alerts arriving meanwhile wait in the queue.
- Flows and dashboards read as written. An invalid flow or dashboard document is kept and shown with its reason, never run.
- Broker permissions. Give the hub user read and write on
nidoo/#(or the narrower sets above), write onnidoo-sound/speak,nidoo-sound/hold(satellite speech and listening) andnidoo-sound/+/remove/set(removing a satellite), read on<topic_prefix>/eventsand<gateway prefix>/+, and for the ACL watchdog read on$SYS/broker/log/#. Mosquitto denies silently. The bundled broker's ACL gives the phone app's login,nidoo-app, everything butnidoo/push/notification/#,nidoo/alarm/settings,nidoo/flow_labelsand$SYS/#(see Security).