/ha-nova:devicefrom ha-nova
Manages Home Assistant device lifecycle: swap (re-point automations, scripts, scenes, dashboards, helpers, groups, energy sources, notify targets, and person trackers from old to new device), onboard (integrate a new device where siblings are used), and retire (impact check before removal).
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.
Device lifecycle: swap (re-point everything that names the old device to the new one), onboard (a new device joins where its siblings are used), retire (impact check before a device leaves).
This skill plans the whole task and writes two families itself: automation/script re-points (ha-nova plan write + apply) and the entity_id takeover (entity registry new_entity_id). Every other family goes to its owning skill (Hit Routing).
Not in scope: removing a device (ha-nova:organize), re-pairing one (the integration's device page; leftover entity rows: ha-nova:maintenance); one entity rename without a swap (ha-nova:organize); groups and bindings inside ZHA or Zigbee2MQTT (the integration's UI).
Read and follow ../ha-nova/session-bootstrap.md. An unreachable Relay answers exit 1 RELAY_ERROR (then ha-nova setup).
ha-nova get <entity_id> --references covers the entity's whole device. result.references: device, entities[] (mapping hints: platform, translation_key, original_name, device_class, unit, state, registry_id), notify_service, hits[] (family, id, config_id, managed, needle, paths, template), scanned, not_scanned[], not_covered[]; result.related is search/related. An entity that no longer exists is scanned by its id (resolved[0].by = absent).ha-nova find "<phrase>", ha-nova get <entity_id> --config; registry reads (config/entity_registry/get, config/device_registry/list) per ../organize/SKILL.md.ha-nova plan write --domain automation|script --id <config_id> --file <draft.json>, then ha-nova apply [--confirm <code>] --plan <id> (../write/SKILL.md Phase 2-3 rules).ha-nova plan raw --file <requests.json> item {"endpoint":"ws","payload":{"type":"config/entity_registry/update","entity_id":"<new id>","new_entity_id":"<old id>"}}, then ha-nova apply.| Hit | Route |
|---|---|
automation / script without managed | this skill: re-point group |
any hit with managed: yaml | ha-nova:yaml-config |
managed: blueprint (the blueprint body names it, not the instance) | the blueprint: ha-nova:fallback |
dashboard | ha-nova:dashboard |
energy | ha-nova:energy |
entity on scene.* / person.* / group.* | ha-nova:scene / ha-nova:admin / ha-nova:yaml-config |
other entity (group, min_max, utility meter, derivative, integral, threshold helper) | ha-nova:helper; no helper → ha-nova:fallback |
| old entity's Assist exposure (a takeover keeps the new entity's own) | compare; differences: ha-nova:assist |
a related item missing from hits (a blueprint naming the entity) | read its config; treat it as a hit |
A swap can hand a door to a new device without anyone editing a lock automation: a takeover re-points every unlock, disarm, or open that names the old id, a new phone's tracker can feed the person or group an unlock waits for, and an area or label can widen what an access automation targets. Decided in the plan card, before the old device is removed, a step takes the one-time code (a rename or a hand-off's write: "typed":true on its plan raw item, beside endpoint and payload) when:
typed (a consumer the swap re-points: its re-point plan's tier; any other: plan its current config unchanged (get --config → plan write --id), read only the tier, never apply it). Consumers include one level up: the related automations and scripts of every entity hit (a person, a group);managed: yaml or blueprint, a not_scanned automation or script): it counts as typed.It covers takeover renames, person and group hand-offs, and carrying an area or label onto such an entity.
Drafts follow ../ha-nova/smallest-solution.md: the complete requested outcome in the simplest safe design, nothing speculative.
get <old entity> --references and get <new entity> --references BEFORE the old device is removed: afterwards its device and registry ids are gone and device-level references cannot be found. A phone whose device is already gone: scan its old ids the same way, including its notify service (get notify.mobile_app_<old name> --references; hits confirm the name).entities[]: same domain, then device_class, translation_key, unit, original_name without the device name. One-to-one; ambiguity is one question. An old entity with hits but no counterpart is named with the choice: drop the reference, or point it at an entity the user names. Remotes and buttons: ../ha-nova/input-capability-preflight.md first.needle is the device id or a registry_id: device triggers, conditions, actions, device_id targets) and the notify service. Across integrations a device trigger rarely maps 1:1: use a state trigger on the mapped entity and name the change.scanned counts, every not_scanned row, the not_covered line. Never claim "everything" while either applies.ha-nova:organize or HA UI). Verify each mapped old id: ha-nova get <old id> exits 5 NOT_FOUND; a leftover row goes to ha-nova:maintenance.
c. Takeover renames, one registry update per pair on the NEW entity, per ../organize/SKILL.md → Entity / Device Update Fields (metadata snapshot first); tier per Access Check, ordinary renames in one grouped change set. Carry the old entity's area_id and labels and, when the user wants, its name, icon, aliases. Both paths: the old device's area and labels go to the new device through ha-nova:organize.
d. Takeover only, after the renames are verified: re-point every holder that names a NEW entity's own id (the new scan's hits) to its taken-over id; a holder that named both ids now names one entity twice — the user picks which reference stays.
e. Hand-offs, one owning skill at a time (Hit Routing), each with exact holders, paths, and the mapping; their previews, snapshots, and tiers stay, raised by the Access Check where it applies. The Work Ledger carries the open families.Re-point Group. Draft = the current config with each mapped needle replaced, templates included, a hit's keep devices kept beside it, nothing else changed (key order kept); the takeover path replaces device ids, registry ids, and the notify service only, because the old entity ids will name the new entities. One grouped change set (../ha-nova/grouped-change-set.md) of at most 5 updates. The undo store keeps the last 25 updated targets across every write of the swap — re-points, typed plans, helper hand-offs: when the swap makes more, the earliest lose revert; say so in the plan card and offer ha-nova:backup before the first write. The CLI tiers each plan by what the config performs, whichever part changed; a typed plan leaves the group with its own code. Diff rows verbatim.
Partial failure: each group stops at the first failure and reports its ledger; nothing is atomic. Applied updates keep their revert until the undo store evicts them (the undo receipts name evictions). A failed rename after the old device's removal leaves the old id unclaimed — the state the dead device left: if get <old id> still exits 5, retry that rename; if the id is taken again, stop and re-scan. Never rename anything else to cover. Undoing a takeover renames the entity away and takes the old id's history with it: say so before such a revert.
ha-nova:organize; for a lock, alarm panel, or access cover the Access Check comes first.ha-nova find --area <area_id> --domain <d>); get <sibling> --references shows where they are used. Offer at most two holders to add the new entity to, through the routes above — always as an added target beside the sibling, never a replacement; a change to trigger or condition logic goes through ha-nova:write.ha-nova call light.turn_on <entity_id> --set flash=short.get <entity> --references on the device, then ../ha-nova/safe-refactoring.md → Pre-Delete Impact Check with these hits as the consumer list and the coverage limits named.
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. The plan is a Report (../ha-nova/output-cards.md); the mapping reads old → new per line, holders by alias or title, paths only on request. Writes keep their owning flows' Preview and Result Cards; a group closes per ../ha-nova/grouped-change-set.md.
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.
A scan after the old device's removal finds entity_id references only: say so, and never call device-level coverage complete.
../write/SKILL.md (Phase 2-3), ../ha-nova/write-safety.md, ../ha-nova/grouped-change-set.md, ../ha-nova/smallest-solution.md../ha-nova/safe-refactoring.md (retire), ../ha-nova/input-capability-preflight.md (remotes, buttons), ../organize/SKILL.md (takeover fields)What SKILL.md sets; muted values are Claude Code's defaults
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