Skip to main content

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.

TopicDirectionRetainedPayloadMoved byBacked up
<discovery prefix>/<component>/[<node_id>/]<object_id>/config, default nidoo/…inyes (by the publisher)Home Assistant discovery JSON; an empty payload removes the entity[topics] discovery_prefixes—
Device state topics named by the discovery configsinby the deviceDevice state; subscribed on demanddiscovery—
Device command topics named by the discovery configsoutonly when the config says "retain": trueThe device's command payloaddiscovery—
<z2m_base>/bridge/devices, /info, /stateinyes (by Zigbee2MQTT)Zigbee2MQTT device list, bridge info and state[topics] z2m_base—
<z2m_base>/bridge/request/backupoutno{"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/backupinnoZigbee2MQTT'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/statusoutnoonline, once per connect[mqtt] send_ha_birth, [mqtt] ha_status_topic—
nidoo/ui/<entity id>in, outyesThe entity's override JSON; empty clears it[topics] ui_prefixyes
nidoo/ui/_areasin, outyesThe declared rooms ({"areas": […]})[topics] ui_prefixyes
nidoo/ui/_homein, outyesThe home settings ({"eco_setpoint", "mode_entity", "indoor_entity"}); an empty payload means defaults[topics] ui_prefixyes
nidoo/ui/_typesoutyesThe whole type table[topics] ui_prefixno
nidoo/ui/dashboards/<id>in, outyesA dashboard definition; empty removes it[topics] ui_prefixyes
nidoo/ui/ambiances/<id>in, outyesAn ambiance definition; empty deletes it[topics] ui_prefixyes
nidoo/automation/<flow id>in, outyesA flow document; empty removes it[topics] automation_prefixyes
nidoo/automation/<flow id>/fired/<node id>in, outyes{"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_prefixno
nidoo/flow_labelsin, outyesThe flow label catalog ({"labels": […], "choices": […]}), written by the hub only[topics] flow_labelsyes
<first discovery prefix>/<switch|number|button|select>/virtual/<id>/configoutyesDiscovery of a virtual entity[topics] discovery_prefixes (first entry)yes
<first discovery prefix>/virtual/<id>in, outyes for a switch, number or select; no for a buttonON / 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/availabilityoutyesDiscovery 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/availabilityoutyesDiscovery 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/cacheout, inyesThe 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>/availin, outyesDiscovery of a group entity; the combined state (commands arrive on the state topic as JSON); online on avail[groups] enabled, [topics] discovery_prefixesno
<first discovery prefix>/group/<id>/definitionin, outyes{kind, name, members, hideMembers}[groups] enabledyes
<first discovery prefix>/group/_migratedin, outyes1, the marker that the one-time room-group migration ran[groups] enabledyes
<first discovery prefix>/binary_sensor/network/<id>/config, <first discovery prefix>/network/<id>, <first discovery prefix>/network/<id>/availoutyesDiscovery 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_prefixesno
<first discovery prefix>/network/<id>/definitionin, outyes{name, host, intervalS, enabled, area, device}[network] enabledyes
nidoo/push/notification/<source>innoAn alert, v1 or legacy payload[push] prefix—
nidoo/push/tokens/<installId>in; out to clearyes{token, device_name, lang, updated_at}; empty unregisters. The hub publishes an empty payload to clear a dead token[push] prefixyes
nidoo/push/responsesin (climate and alarm), outno{id, action, install_id, ts}, a tapped alert button[push] prefix—
nidoo/push/historyin, outyesJSON array of the normalised alerts, newest first[push] prefixyes
nidoo/climate/housein, outyesThe house settings document[climate] prefixyes
nidoo/climate/zone/<zone>/settingsin, outyesThe zone settings document[climate] prefixyes
nidoo/climate/zone/<zone>/<doc>in, outyesA 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] prefixno
nidoo/climate/zone/<zone>/hold/setinnoA 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, outyesThe alarm settings document; enabled defaults to false. Default prefix nidoo/alarm[alarm] prefixyes
<prefix>/state, <prefix>/panel, <prefix>/panel/attributes (alarm)in, outyesThe 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] prefixno
<prefix>/panel/set (alarm)innoThe 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/configoutyesDiscovery 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] prefixno
nidoo-sound/speakoutno{"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/holdoutno{"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/spokeninno{"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/setout, inyes (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/setout, inyes (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>/addressinyes (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/setoutnoAny 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/eventsinnoFrigate event JSON; subscribed only with the bridge on[frigate] bridge, [frigate] topic_prefix—
<prefix>/+, default encryption-gateway/health/+inyes (by the gateway){"status": "ok" | "fail" | "config_error", …} per component[watchdog.gateway] enabled, prefix—
$SYS/broker/log/#innoMosquitto log lines[watchdog.acl] source = "topic", log_topic—

Notes​

  • Reserved sub-trees. Under a discovery prefix, the segments ui, automation, virtual, push, weather, solar, network and flow_labels are reserved: never publish discovery there. A topic in them is never read as discovery and never shows under GET /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/responses is always subscribed: a reply whose id starts with alarm- goes to the alarm, which disarms only on the disarm reply 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} (not bridge/#, 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 default nidoo/flow_labels is under nidoo/#). A push filter that falls inside one of those wildcards (the default nidoo/push/… under nidoo/#) is left out, so the broker does not deliver a notification twice.
  • Backed up. The last column says whether a backup carries the topic: yes for definitions and user data, no for 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 in crates/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/history is 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 on nidoo-sound/speak, nidoo-sound/hold (satellite speech and listening) and nidoo-sound/+/remove/set (removing a satellite), read on <topic_prefix>/events and <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 but nidoo/push/notification/#, nidoo/alarm/settings, nidoo/flow_labels and $SYS/# (see Security).