/ha-nova:mqttfrom ha-nova
Debugs MQTT in Home Assistant via HA NOVA Relay: listens to topics for bounded windows, inspects device discovery, and publishes messages.
Ships in ha-nova. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MQTT work through Home Assistant's own MQTT integration:
Not in scope: the MQTT broker's own configuration, Zigbee2MQTT's web UI, or creating MQTT-based automations (ha-nova:write).
Read and follow ../ha-nova/session-bootstrap.md.
Bounded subscription windows are guaranteed by the skills' enforced relay floor (../ha-nova/relay-api.md -> Bounded Event Collection). If a relay-outdated warning appeared, have the user update the NOVA Relay instead of working around it — an older relay silently ignores on_limit, which turns a normal quiet window into a hard error.
Requires the mqtt integration: check GET /api/components for mqtt. If it is absent, say so — this skill cannot add it.
ha-nova relay ws --data-file <payload-file> for WS commandsha-nova call mqtt.publish --skill ha-nova:mqtt --data-file <payload-file> to publish — typed (Zigbee2MQTT's permit_join: ../integration-setup/pairing.md): show its preview, then follow the result's next_step (ha-nova apply [--confirm <code typed in chat>] --plan <id>) (exit codes: ../service-call/SKILL.md → Flow)--out <result-file> for large windows; --jq-file <filter-file> for filteringMQTT topics never emit a "finish" event, so a listen is a WINDOW, not a request. Use the envelope in window mode:
{
"message": { "type": "mqtt/subscribe", "topic": "zigbee2mqtt/#" },
"collect_events": { "max_events": 50, "timeout_ms": 8000, "on_limit": "return" }
}
.data.events holds what was seen. .data.truncated: true means the window ended at a LIMIT — either max_events or timeout_ms, the relay does not distinguish them — not that the stream stopped. Compare the event count with max_events to tell them apart: at the cap it hit the event limit (there may be more traffic); below it the window simply ran out of time, which is the normal ending for a quiet topic.retain flag: treat retain: true as broker state, not as evidence that the device is sending. For the question "is my device actually publishing?", only retain: false messages count — and if all you saw were retained ones, say exactly that (the device is silent; the broker is holding its last value).# on the root is noise, not evidence.When the traffic needs the user to act (press the remote, trip the sensor), the window cannot wait for them — it starts with the call and the relay caps it at ~10 s (context skill → User-Assisted Readiness):
retain: true) — means re-arm and retry once before reporting "nothing arrived"; never call the device silent on one missed window.Never instruct the physical action before the ready-check, and never claim monitoring is active without an open window.
Zigbee2MQTT publishes its network state on retained zigbee2mqtt/bridge/... topics (bridge/devices, bridge/info, bridge/state). A bounded listen on one of them returns the retained replay immediately — here retain: true IS the answer (broker-held state), not a liveness signal. Use it for "which devices does my Zigbee network have / is the bridge online" questions. Bridge WRITES (rename, permit_join) are not covered here. ZHA and Z-Wave setups have no MQTT surface — route them to ha-nova:fallback (Zigbee / Z-Wave network status).
zigbee2mqtt/<device> beats zigbee2mqtt/#).retain: false) versus retained replays. Quote at most a few payloads.{"type":"mqtt/device/debug_info","device_id":"<device_id>"} shows the subscribed topics and discovery payloads for one MQTT device (resolve device_id from the device registry, never guess it).mqtt.publish with topic, payload, qos, retain. There is no payload_template field in the current schema — render any template yourself and send the finished string as payload. (evaluate_payload: true only tells HA to evaluate a Python-literal payload for raw bytes; it is not a template switch.) Plan it; confirm its exact topic + payload once.set publish: when the topic belongs to an HA-known device, read the affected entity's state back after a moment — a broker accept is not device confirmation; if HA shows no corresponding change, say so. For topics HA does not mirror, state plainly that HA-side verification is not possible.retain: true) persists on the broker and is re-delivered to every future subscriber — including Home Assistant's discovery layer. A wrong retained payload on a homeassistant/... discovery topic can create or destroy entities and keeps doing so after a restart.set/command topic actuates real hardware. Preview it as an action, not a message.retain: true — say this explicitly when a retained message is the problem.ha-nova:maintenance.Full relay/upstream error taxonomy: ../ha-nova/relay-api.md -> Error Handling. MQTT specifics:
UNSUPPORTED_WS_TYPE on mqtt/subscribe: check YOUR request first. A BARE mqtt/subscribe is rejected by every relay version — that is by design, and it means the subscription was not wrapped in a collect_events envelope. Fix the request. Only if the request WAS enveloped does this error mean the relay predates bounded windows; confirm with ha-nova relay health before telling the user to update the App.400 VALIDATION_ERROR mentioning on_limit: never expected — an older relay ignores the field silently rather than rejecting it, so this points at a malformed envelope.UPSTREAM_WS_TIMEOUT in window mode means the subscription never even established (broker down, integration not loaded) — that is different from an empty window, and worth saying plainly.mqtt/device/debug_info needs a device_id from the device registry; an entity_id is rejected..data.status 401): admin-only since HA 2026.10; a standalone HA_LLAT needs an admin owner.Apply ../ha-nova/output-rules.md: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON. Previews, deletes, and results use the Cards defined there (../ha-nova/output-cards.md).
Render the Report shape (output-cards.md). For a listen: the topic, the window length, how many messages arrived (live versus retained — never merge those two), the distinct topics, a few representative payloads. Say explicitly when nothing arrived, and when everything that arrived was a retained replay. For a publish: the topic, payload, and whether it was retained.
Safety Core: before any write, apply ../ha-nova/safety-core.md; not yet in this conversation → read it first; unreadable or incomplete → stop and write nothing.
Drafts follow ../ha-nova/smallest-solution.md: the complete requested outcome in the simplest safe design, nothing speculative.
Retained publishes and command/set topics take the one-time code; the CLI puts every publish on the typed tier, except Zigbee2MQTT's permit_join (../integration-setup/pairing.md).
Never publish to homeassistant/... discovery topics unless the user explicitly asks and understands that it can create or delete entities.
ha-nova call. A retained-discovery cleanup is several ha-nova call mqtt.publish plans, each its own typed plan with its own say ask — one reply each in manifest order per ../ha-nova/batch-safety.md (no shared batch code): one resolved device, topics taken only from mqtt/device/debug_info, never guessed or globbed; command/set topics always stay single-target.device_id or invent a payload schema; read what the device actually publishes first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub markusleben/ha-nova --plugin ha-nova35 skills in this plugin
/adminUse when managing Home Assistant people, zones, tags, user accounts, general settings (name, location, units, time zone), Labs features, and analytics sharing — creating a person, drawing a zone, adding a tag, or reviewing who has access — through HA NOVA Relay./assistUse when working with Home Assistant's own built-in voice assistant (Assist) — testing what it understands, inspecting, editing, or creating Assist pipelines, managing which entities are exposed to voice, listing TTS/STT/wake-word engines, and teaching Assist custom sentences — through HA NOVA Relay. Not for Alexa or Google Assistant — setting those up is `ha-nova:integration-setup` (or `ha-nova:yaml-config` for a manual cloud config), and one that STOPPED working is a concrete failure for `ha-nova:diagnose`./backupOther plugins' skills for the same job