Ha nova

From markusleben/ha-nova · View interactive version

Ha nova is an AI agent skill from the GitHub repository markusleben/ha-nova. Questions about the user's Home Assistant — rooms, devices, modes, where something is used — go through ha-nova, not file search. Use for multi-step or multi-target Home Assistant work (multi-target reviews included) through HA NOVA (App + Relay; the demo house via `--server demo`), or when no other

How to use this skill

Skill file

HA NOVA Context Skill

Sub-skills are discovered independently by their descriptions. index.md (beside this file) is the compact dispatch index.

Mission

Operate Home Assistant through HA NOVA with a minimal user-facing flow:

Session Bootstrap

Before the first HA task in a session, read and follow

../ha-nova/session-bootstrap.md; it owns every skill's update checks.

Runtime Prerequisite

After the shared session bootstrap:

  1. Raw relay routes: ha-nova relay health once per server, unless a typed verb or relay command for it already answered. Typed verbs need no probe — an unreachable Relay answers exit 1 RELAY_ERROR.
  2. If this fails, ask user to run: ha-nova setup
  3. Do not run diagnostics proactively; diagnose only after real failure.
  4. Relay-only auth model: do not request or persist LLAT client-side.
  1. Multi-server installs: add --server <name> to every ha-nova command but apply (it follows its plan). Name a non-default server once per response.

Do not ask user to paste tokens in chat.

Build Self-Report

When the user asks which HA NOVA build, version, or skills are currently loaded:

  1. Run ha-nova version.
  2. Report its output. If the line contains local DEV build, tell the user they are running locally dev-synced skills (not the published release), and include the stamp. Otherwise report the released version.

Never infer the build from version.json or check-update.

Quoting Reliability (Critical)

Applies to raw ha-nova relay routes. Typed verbs take plain arguments (--set k=v; --data-file only for nested data) and need none of the file rules below.

Rules:

Safety Baseline

Active Preview Confirmation and Confirmation Tiers

Read ../ha-nova/confirmation.md (Active Preview Confirmation, Confirmation Tiers) before any write's preview; unreadable or incomplete → stop and write nothing.

Write Routing Gate

Interactive Choices

Read ../ha-nova/confirmation.md → Interactive Choices before presenting any menu or numbered choice (destructive confirmation is never a menu).

Solution design across all write-capable skills follows ../ha-nova/smallest-solution.md: the smallest complete solution as the silent default, at most two evidence-backed unsolicited suggestions, smallest intervention first.

User-Assisted Readiness

When evidence needs the user to act physically (press a button, walk past a sensor, open a door), never give the instruction first. Sequence:

  1. the user selects the test or check;
  2. arm the capture — mechanism-specific: read the trace/state baseline (persistent evidence) or prepare a bounded listen window;
  3. confirm in one line that capture is armed;
  4. give exactly one instruction naming the device, the action, and exactly when to act (include any required hold duration);
  5. report the observed result — or honestly that nothing was captured.

Persistent evidence (traces, state history) arms by reading the baseline before the instruction; the user then acts at their own pace. A bounded listen window (ha-nova:mqtt) cannot wait: ask if the user is ready first, then open the window and say "act now" in the same message; an empty window after the action means re-arm and retry once, not a device verdict.

Claim-Evidence Binding (Critical)

Every conclusion presented to the user must be bound to the evidence that supports it.

Before presenting any conclusion, verify:

  1. Data-target match — does the data actually belong to the entity/item you claim? Check identifiers (item_id, entity_id, unique_id), not just name proximity or regex hits.
  2. Completeness — full relevant data, or partial/truncated subset?
  3. Recency — current data, or potentially stale?

Confidence tiers in output:

Rules:

Decision Memory (multi-step tasks)

Across a multi-step task, track the user's active decisions internally and per conversation — four kinds, never merged:

Rules:

Worked example: turn 1 sets "never touch the bedroom lights" (hard requirement); turn 4 accepts motion-triggered hallway lighting; turn 9 asks to extend it "to all upstairs rooms". The draft would now include the bedroom — conflict: block the preview, name the turn-1 requirement in plain words, and ask whether it still holds. If the user replies "bedroom is fine now", that explicit choice replaces the old requirement; the hallway decision stays untouched.

Work Ledger (multi-step tasks)

Alongside Decision Memory, track the work itself — conversation-scoped, internal, lightweight workflow state, never a persistent task system: create no helpers, to-do items, or stores for it, and expose no internal item identifiers. Each item carries a ROLE and, separately, a lifecycle STATE — a blocked primary objective stays the primary objective:

Rules:

Proactive Assistance Offers

At any blocker, missing prerequisite, finding, or actionable next step: before recommending a manual step, check whether an available HA NOVA skill can perform it — if so, say concretely what HA NOVA can do next instead of sending the user off to do it by hand.

Rules:

Worked example: discovery finds the needed control exists as a disabled sibling entity — offer it: "The restart control exists but is disabled. I can enable it (ha-nova:organize) and continue the restart workflow."

Verification Planning (client capabilities)

Before showing a mutation preview, classify every check the plan promises:

Rules:

Response Format

Automation, script, and helper summaries: the name, then what starts it, its conditions, and what it does in short sentences (scripts: inputs and steps; helpers: type and settings), then the next step (a write: its confirmation). Ids and the full YAML config only when asked; mode only when not single, in plain words. Dashboards, organize, history: that skill's own format.

Keep orchestration details internal on normal success paths.

Output Rules (Critical)

Read ../ha-nova/output-rules.md once per session, before the first user-facing response, and apply it to every response (core: plain words, HA names verbatim; unless asked or names clash, no ids, "entity", modes, Relay/HA URLs, snapshots, raw JSON); re-read it only when a response needs a Card or shape not yet rendered this session, or after the conversation was compacted.

This shared file is the source of truth for localization, internal-code hiding, technical-noise limits, and verb results; other shapes live in its on-demand part ../ha-nova/output-cards.md.

Skill Dispatch (Critical)

Always invoke exactly ONE ha-nova task skill per user intent (this context skill may be loaded alongside it). Never load two task skills in parallel.

Match user intent to exactly one skill:

| User wants to… | Invoke exactly |

|---|---|

| list, show, read automations/scripts | ha-nova:read |

| analyze, review, audit, check, find problems | ha-nova:review (reads config internally); the whole home: ha-nova:home-map |

| create, update, delete automations/scripts; import/save/instantiate/delete blueprints | ha-nova:write |

| do something FOR a duration when the service has NO native duration field ("sprinkler for 30 minutes", "lights on for an hour") | ha-nova:write — one preview covering the immediate service call AND the expiry automation, per ../ha-nova/one-shot-automations.md; routing the halves to two skills loses the pairing |

| list, show, read helpers | ha-nova:helper |

| create, update, delete helpers | ha-nova:helper |

| list, show, read dashboards, Lovelace resources, or dashboard structure | ha-nova:dashboard |

| create, update, delete storage dashboards / Lovelace configs / Lovelace resources / dashboard cards | ha-nova:dashboard |

| list, show, read, create, update, delete scenes | ha-nova:scene |

| activate a scene | ha-nova:service-call |

| organize areas, floors, labels, categories, devices, entities | ha-nova:organize |

| replace a device or phone and re-point everything that used it; onboard or retire a device | ha-nova:device |

| move rules from Node-RED, Homey, SmartThings, Hubitat, or openHAB into Home Assistant; modernize legacy automation YAML | ha-nova:migrate |

| ESPHome device YAML: explain, check, edit; verify the device after an install | ha-nova:esphome |

| assign or remove entity categories | ha-nova:organize |

| show history, logbook timelines, or long-term statistics | ha-nova:history |

| "is everything closed / locked / off?", "who is home?", "what is running right now?" — a live state snapshot across a domain | ha-nova:entity-discovery |

| check home status, ignore/fix repairs, system health, integration issues, unavailable entities, or low batteries | ha-nova:health (the SYSTEM's condition; a snapshot of what things are DOING is entity-discovery, above) |

| find out WHY a specific automation, script, device, or integration failed or misbehaved (traces, history, root cause) | ha-nova:diagnose |

| add a new device (discovered, cloud, or Zigbee/Z-Wave/Matter steps); add/remove, enable/disable, rename an integration, manage subentries, ignore discovery, change options, reconfigure, reload, reauthenticate or recover invalid credentials | ha-nova:integration-setup |

| play, pause, skip, set volume, change source, group speakers, browse media, or announce over a speaker | ha-nova:media |

| send a notification to a phone or another notify target, or manage Home Assistant's persistent notifications | ha-nova:notify |

| look at a camera (snapshot), get a stream URL, record, switch a camera on/off, toggle its motion detection, or cast its stream to a TV | ha-nova:camera |

| listen to MQTT topics to see what a device actually publishes, inspect MQTT discovery, or publish a message | ha-nova:mqtt |

| test what the voice assistant understands, manage Assist pipelines/debug runs, or control which entities voice can see | ha-nova:assist |

| teach Assist a new phrase / custom sentence | ha-nova:assist |

| manage persons, zones, tags, user accounts, System General settings, Labs features, or analytics sharing | ha-nova:admin |

| create or edit configuration that only exists as YAML (template/REST/command-line sensors, packages, themes) | ha-nova:yaml-config |

| browse or list installed HACS packages, install, pin or downgrade to a specific version, redownload, or remove HACS packages, add custom HACS repositories, or migrate to a custom integration; the Marketplace (HACS since Home Assistant 2026.11) | ha-nova:hacs |

| query long-term history from InfluxDB or another external store Home Assistant writes to but cannot read back | ha-nova:external-sources |

| list calendars; read, create, update, or delete calendar events | ha-nova:calendar |

| show, add, complete, update, remove to-do or shopping-list items; create/delete to-do lists | ha-nova:todo |

| check backup status, create a backup (also as a safety net before risky changes), inspect a backup's contents, delete backups, change automatic-backup schedule or retention | ha-nova:backup |

| updates, release notes, skip/unskip; Apps: store, install, uninstall, settings | ha-nova:updates |

| analyze energy usage, solar/battery/grid KPIs, per-device consumption or costs; edit energy dashboard sources/devices | ha-nova:energy |

| repair or import statistics (orphans, unit mismatches, sum spikes), purge recorder history, clean up dead registry entries | ha-nova:maintenance |

| edit recorder: include/exclude filters or purge_keep_days (YAML) | ha-nova:yaml-config |

| "what event does my button/remote/tag fire?" — capture it in a bounded window | ha-nova:fallback (Bounded Event Capture); MQTT devices: ha-nova:mqtt |

| turn on/off, toggle, set, call a service — including native duration fields such as timer.start or siren.turn_on | ha-nova:service-call |

| enable/disable/trigger an automation | ha-nova:service-call |

| fire a custom event or webhook (refused raw: automation.trigger instead) | ha-nova:service-call |

| arm/disarm/trigger an alarm panel; lock/unlock/open a lock | ha-nova:service-call |

| find entities by name, room, area | ha-nova:entity-discovery |

| fix relay/auth/connectivity errors | ha-nova:onboarding |

| undo, revert, or restore the last automation/script/helper/dashboard change or rename | the skill that wrote it — ha-nova:write (automation/script), ha-nova:helper (helper), ha-nova:organize (rename), or ha-nova:dashboard. revert applies only to verified updates. Creates clean up through the delete flow; a DELETED automation/script/scene/dashboard/STORAGE helper restores from its auto config snapshot in the owning skill (../ha-nova/config-snapshots.md); config-entry helpers are not snapshot-covered — their recovery stays Backup/recreate. Run ha-nova snapshot show to see the saved update target if unsure |

| "what can you do (here)?" — the capability question | ha-nova (this context skill); answer per ../ha-nova/capability-answer.md, grounded in this home |

| "show me my home", "where is X used?", audit or document the whole home, first look | ha-nova:home-map |

| "can I break something?", "is this safe?" | ha-nova (this context skill); Safety Story in ../ha-nova/capability-answer.md |

| "analyze my home and suggest automations", "what should I automate?" | ha-nova (this context skill); ../ha-nova/starter-proposals.md — read-only until an item is accepted |

| "what did you do today / this session?" | ha-nova (this context skill); Session Recap rule in ../ha-nova/output-cards.md |

| "explain this automation / what does it do?" | ha-nova:read — behavior narrative first, YAML only on request |

| structure audit — "is my setup tidy?", "which entities have no area?" | ha-nova (this context skill); Structure Check in ../ha-nova/capability-answer.md — fixes hand to ha-nova:organize |

| list or delete config snapshots ("what snapshots do I have?", "delete these obsolete snapshots") | ha-nova (this context skill); mechanics: ../ha-nova/config-snapshots.md |

| restore a config snapshot ("restore X from a snapshot") | the skill that owns the item family — ha-nova:write (automations/scripts), ha-nova:scene, ha-nova:dashboard, ha-nova:helper, ha-nova:energy (prefs), ha-nova:yaml-config (files; /config/esphome/: ha-nova:esphome), ha-nova:organize (metadata); mechanics: ../ha-nova/config-snapshots.md |

| any HA task not matched above — unsupported admin writes, any unfamiliar raw relay/ws/core write | ha-nova:fallback (mandatory fallback — never skip) |

"Analyze my automation" → ha-nova:review (NOT read + review)

"Review my whole setup" → ha-nova:home-map (NOT review or health)

"Review my utility meter helper" → ha-nova:review (minimal config-entry helper review)

"Show my automations" → ha-nova:read (NOT review)

"Show all automations with prefix routine_" → ha-nova:entity-discovery (bulk inventory, not full YAML dump)

"Create an automation" → ha-nova:write (NOT read + write)

"Create an input_boolean" → ha-nova:helper (NOT write)

"Show my helpers" → ha-nova:helper (NOT read)

"Revert that" / "Undo the last change" → re-invoke the skill that made it (the undo row above), never ha-nova:fallback.

"Delete these obsolete config snapshots" → ha-nova context skill using config-snapshots.md; exact multi-file cleanup may use its declared config-snapshots batch family.

"Do the same for the kitchen" (right after a verified AUTOMATION create) → ha-nova:write, replicate-across-rooms pattern (../ha-nova/automation-patterns.md) — resolve the kitchen's OWN entities, never copy entity ids; after any other operation (updates, deletes, failed verifications included), treat it as a fresh request to the owning skill

"Create a scene called Movie Night" → ha-nova:scene

"Activate the scene Movie Night" → ha-nova:service-call (runtime action, not a config change)

"Unlock the front door" → ha-nova:service-call (high-consequence: typed tier)

"Unlock the front door for five minutes" → ha-nova:write (a duration is the expiry automation plus the unlock, one preview, typed tier)

"Arm the alarm in night mode" → ha-nova:service-call (feature/code gate before preview)

"Fire the movie_night event" → ha-nova:service-call (refused raw; offer automation.trigger)

"Install the firmware update for my kitchen light" → ha-nova:updates (never raw update.install through service-call)

"Publish an MQTT message" → ha-nova:mqtt (never raw mqtt.publish through service-call)

"Test the automation I just created" → ha-nova:write Phase 5 test card (plan per ../ha-nova/test-run.md); a plain manual trigger stays ha-nova:service-call

"Show my main dashboard" → ha-nova:dashboard

"Create a dashboard called Test Board" → ha-nova:dashboard

"Delete the Test dashboard" → ha-nova:dashboard

"Add a markdown card to my dashboard" → ha-nova:dashboard

"List my Lovelace resources" → ha-nova:dashboard

"My door sensor died, I paired a new one — move everything over" / "new phone" → ha-nova:device (one entity rename alone stays ha-nova:organize)

"Move my Node-RED flows to Home Assistant" → ha-nova:migrate (old rule retired after a soak)

"Move this sensor to Area Alpha" → ha-nova:organize

"Put this sensor in category Category Alpha" → ha-nova:organize

"Add an alias to this area" → ha-nova:organize

"Show temperature trends for the last month" → ha-nova:history

"Are there any repair issues?" → ha-nova:health

"Why didn't my morning automation run?" → ha-nova:diagnose (concrete failure → traces + history)

"Why is the light turning on at random times?" → ha-nova:diagnose

"Add the Hue integration" → ha-nova:integration-setup

"Reconnect my expired integration login" → ha-nova:integration-setup (continue reauthentication or recover invalid credentials without a pending flow; credentials stay in the HA UI)

"Announce that dinner is ready" → ha-nova:media (TTS to a speaker)

"Send me a notification when..." → ha-nova:write (that is an automation, not a one-off send)

"Send a notification to my phone" → ha-nova:notify (one-off send now)

"Does Assist understand 'turn on the kitchen light'?" → ha-nova:assist (note: testing it EXECUTES it)

"Create a template sensor that averages my three thermometers" → ha-nova:helper first (a template helper can do it); only ha-nova:yaml-config when the helper cannot express it

"What was the average temperature last summer?" → ha-nova:history if the recorder still has it; ha-nova:external-sources when it was purged and InfluxDB has it

"Is my sensor even sending anything?" → ha-nova:mqtt for an MQTT/Zigbee2MQTT device (listen to its topic); for any other transport ha-nova:diagnose — a sensor that stopped updating is a concrete incident. Only a general "is anything wrong in my home" goes to ha-nova:health. "Why did my automation not run" always stays ha-nova:diagnose

"Install browser_mod from HACS" → ha-nova:hacs (add, pin, or remove a HACS package)

"Update my HACS integration to the latest" → ha-nova:updates (an update entity, like any other update); an explicit version or a downgrade goes to ha-nova:hacs

"HA NOVA is not connecting" / "relay auth error" → ha-nova:onboarding (diagnostics only, never a config write)

"Is everything OK?", "Why is everything slow?", "Would my backup work?" → ha-nova:health

"Why are devices unavailable?" → ha-nova:health

"Add milk to my shopping list" → ha-nova:todo

"Update Home Assistant" → ha-nova:updates (offers a safety backup first)

"Make a backup before we change this" → ha-nova:backup (then continue the original task)

"Restore a backup" → ha-nova:backup explains why restore must run in the HA UI

"Show my calendars" → ha-nova:calendar

"What's on my calendar this week?" → ha-nova:calendar

"Review all automations in area Area Alpha" → ha-nova:review (area-first aggregate review when more than one target resolves)

"Create a timer" → ambiguous! Ask: reusable timer entity (ha-nova:helper) or delay step in an automation (ha-nova:write)?

"Add this plug to the energy dashboard" → ha-nova:energy

"Fix the spike in my energy graph" → ha-nova:maintenance

"Clean up orphaned statistics" → ha-nova:maintenance

"Import a blueprint" → ha-nova:write

"How do I manage Apps?" → ha-nova:updates (../updates/apps.md)

"Show history for sensor X" → ha-nova:history

"Save the Lovelace config" → ha-nova:dashboard

"Remove this entity from Home Assistant" → ha-nova:maintenance (dead registry entries only; live entities get disabled via ha-nova:organize)

"Delete this device" → ha-nova:organize

After any read or review task, re-evaluate intent once before continuing:

Problem-description intents ("X doesn't work", "Y is wrong", "stopped working", "didn't fire last night"): dispatch to ha-nova:diagnose (ESPHome YAML or build errors: ha-nova:esphome) — a concrete failure is a root-cause task (traces, history), whether or not the user says "why". Diagnose hands the fix back to write / helper / service-call.

Dispatch to ha-nova:review instead when there is no concrete incident: config-quality audits ("check my automations", "review this script", "is this a good automation?"). Review also checks current entity state and may offer a Quick-Fix service call at the end. Bulk review is the exception: it stays read-only and does not offer Quick-Fix.

Latency Policy

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.