/ha-nova:helperfrom ha-nova
Creates, updates, deletes, and lists Home Assistant helpers (timers, counters, toggles, dropdowns, text/number inputs, schedules, templates, thresholds, utility meters, and other config-entry helpers) through the HA NOVA Relay.
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.
ha-nova:helper has two helper families:
input_boolean, input_number, input_text, input_select, input_datetime, input_button, counter, timer, scheduleutility_meter, derivative, integration, min_max, threshold, tod, statistics, group, history_stats, template, generic_thermostat, switch_as_x, trend, random, filter, generic_hygrostatgeneric_thermostat / switch_as_x / trend / random / filter / generic_hygrostat note: promoted without an observed field inventory — every field comes from the live form per ../ha-nova/live-schema-preflight.md; generic_hygrostat switches a humidifier like generic_thermostat a heater; a switch_as_x create hides the source switch entity behind the new one, and its target domain is create-only (changing it means delete + recreate) — say both in the previewgroup note: handled through the live menu-driven flow; end-to-end support is verified for the sensor subtype, and other subtypes must stay anchored to the live step schema instead of guessed fieldstemplate note: same menu-driven flow (17 entity types); end-to-end support is verified for the sensor subtype. The state field is a Jinja template — author it per ../ha-nova/template-guidelines.md and apply the template-level reliability checks (missing float/int defaults, boolean-string comparisons) BEFORE submitting; a broken template renders the entity unavailable, so post-write verification must read the rendered state, not just entry existenceNot handled here:
local_todo list config entries (use ha-nova:todo)ha-nova:write)Read and follow ../ha-nova/session-bootstrap.md.
Write payloads with the client's native file-writing tool, then use:
ha-nova relay ws --data-file <payload-file>ha-nova relay core --method <METHOD> --path <PATH> --body-file <payload-file>ha-nova relay ... --out <result-file> for larger read/verify output--jq-file <filter-file> for non-trivial filters; keep inline --jq for short selectors onlyha-nova plan raw item {"endpoint":"ws","payload":<the write>}; its say closes the preview; then ha-nova applyFamily-specific transport:
config_entries/get + WS entity-registry joins for list/read; relay /core config-entry flow and options-flow writesDrafts follow ../ha-nova/smallest-solution.md: the complete requested outcome in the simplest safe design — never an extra helper, option, or abstraction it does not need.
Use the compact entity registry (abbreviated keys: ei = entity_id, en = name, ai = area_id).
Create <payload-file> with {"type":"config/entity_registry/list_for_display"}, then run:
ha-nova relay ws --data-file <payload-file> --jq-file <filter-file>
Write <filter-file> with:
[.data.entities[] | (.ei | split(".")[0]) as $domain | select(["input_boolean","input_number","input_text","input_select","input_datetime","input_button","counter","timer","schedule"] | index($domain)) | {entity_id: .ei, name: .en, area_id: .ai}]
| {total: length, shown: (.[0:30] | length), omitted: ([length - 30, 0] | max), truncated: (length > 30), matches: .[0:30]}
If user filters by type, narrow the domain filter to that single storage-based domain.
ha-nova relay ws --data-file <payload-file> --jq-file <filter-file>
Write <filter-file> with:
[.data.entities[] | (.ei | split(".")[0]) as $domain | select(["input_boolean","input_number","input_text","input_select","input_datetime","input_button","counter","timer","schedule"] | index($domain)) | select((.ei + " " + (.en // "")) | test("KEYWORD";"i")) | {entity_id: .ei, name: .en, area_id: .ai}]
| {total: length, shown: (.[0:20] | length), omitted: ([length - 20, 0] | max), truncated: (length > 20), matches: .[0:20]}
If 0 results: try synonyms or shorter stems. Never dump entire domains.
While truncated is true the list proves neither absence nor uniqueness — narrow further until it is false; the counts are exact, the cap trims display only.
ha-nova relay ws --data-file <payload-file> --jq-file <filter-file>
Write <filter-file> with:
[.data[] | select(.name | test("KEYWORD";"i"))]
{type}/list + filter.../ha-nova/helper-schemas.md for required/optional fields. Validate cross-field constraints pre-write too, instead of leaving them to the post-write review: input_number min < max; counter minimum < maximum; input_select initial must be in options; input_datetime needs has_date and/or has_time; timer duration in HH:MM:SS. Fix or ask before writing.../ha-nova/helper-schemas.md → Suggested Defaults for principles and field name reminders.../ha-nova/smallest-solution.md, max 2, numbered apart, only when picked). Group related fields into one item.
Suggested defaults for "{name}" ({type}), included:
1. min: 16, max: 30, step: 0.5
2. unit_of_measurement: "°C"
3. mode: slider
4. icon: mdi:thermometer
Saving keeps them; say a number to drop one (e.g. "not 2").
say.../ha-nova/confirmation.md → Active Preview Confirmation).
group or template subtypes, this first confirmation authorizes only the non-persisting menu-step submit, not the final subtype-specific payloadha-nova apply --plan <id>.{type}/list by name or internal id.id from the list response (this is the {type}_id for the update command).min/max, minimum/maximum, initial ∈ options, or datetime/timer constraints just as easily. Then preview current vs proposed in the Changes slot with ha-nova diff (see ../ha-nova/write-safety.md → Pre-Write Diff) plus the behavior narrative (write-safety → Behavior narrative) — a count-only diff row never stands alone. Then run a pre-write impact check — search/related on this helper entity (max 3 related configs) — and surface affected automations/scripts as an advisory. Advisory only; never block. Include an explicit not-saved-yet line and the save question: the plan's say. REMOVING input_select options or schedule blocks (moved or changed too) puts the auto config snapshot first.../ha-nova/confirmation.md → Active Preview Confirmation).write-safety.md → Drift check before apply).ha-nova apply --plan <id>.apply saved the checkpoint (repeat its undo receipt); offer revert unless its say already names the way back — see ../ha-nova/write-safety.md → Update-Revert. Storage-family restore rebuilds a schema-valid {type}/update from before_config (typed {type}_id from its id + writable fields only — never the raw list item, which lacks {type}_id and carries read-only id/entity_id); expected_after is the post-update read-back.{type}/list; extract its id (the {type}_id used for the delete call — internal, not shown to the user).../ha-nova/write-safety.md → Output hygiene — no raw internal id):
backups save (../ha-nova/config-snapshots.md) of one ha-nova plan raw --file <requests.json>, then {"endpoint":"ws","payload":{"type":"{type}/delete","{type}_id":"<id>"}}; its say asks. Say in the result that a recreate from it mints a new entity_id.ha-nova apply per its next_step.{type}/list.Canonical config-entry helper item:
entry_iddomaintitlestatelinked_entities[]supports_optionsentry_id is the canonical identity for config-entry helper writes.
If the user gives only a linked entity_id, resolve it back to config_entry_id through the full entity registry before continuing.
Config-entry flow orchestration follows the shared contract in ../ha-nova/live-schema-preflight.md: live-form previews, non-persisting pre-confirmation navigation only, stop before the terminal submit, and nested result.entry_id extraction.
Use the sixteen config-entry domains listed in Scope for every operation.
ha-nova relay ws --data-file <payload-file> --out <entries-file>
with {"type":"config_entries/get"}.ha-nova relay ws --data-file <payload-file> --out <registry-file>
with {"type":"config/entity_registry/list"}.config_entry_id.Search against:
titledomainentity_idIf multiple matches remain, present max 5 candidates and ask one blocking question.
entry_identity_idconfig_entries/get.linked_entities[].supports_options: true, start an options flow:
ha-nova relay core --method POST --path /api/config/config_entries/options/flow --body-file <start-payload-file>
with <start-payload-file> containing {"handler":"<entry_id>","show_advanced_options":false}.step_iddescription.suggested_value when presentdescription.suggested_value, mark its value as unavailable instead of guessing**Helper: {title}** ({type})
- **Config-entry state:** {state}
- **Linked entities:** {linked_entities summary}
- **Supports options-flow editing:** {yes/no}
- **Current editable fields:** {field summary from the current options step when available}
../ha-nova/helper-flow-schemas.md.
../ha-nova/helper-flow-schemas.md:
group or template with subtype sensor, include the required next_step_id menu choice and the observed final formgroup or template subtype, plan only the menu choice before the flow starts; inspect the live subtype form before promising the final field setstatistics and history_stats, prepare every later step body before previewtemplate, resolve every entity ID referenced inside the state template before preview — check the entity registry, then fall back to /api/states/<entity_id> (the registry only tracks entities with a unique_id; YAML/manual entities are valid references but absent from it). Only a reference missing from BOTH is a blocking question, not a submitgroup or template subtypes, say that the final subtype form will be previewed after the menu step returns live fields../ha-nova/confirmation.md → Active Preview Confirmation;
../ha-nova/live-schema-preflight.md). On cancel or expiry, abandon
the transient flow without submitting (DELETE the flow_id).ha-nova relay core --method POST --path /api/config/config_entries/flow --body-file <start-payload-file>
<start-payload-file> must contain the handler-start body only.flow_id before continuing.
flow_idnext_step_idgroup or template subtype form, stop and preview the live subtype fields before the terminal submitdata_schema against the confirmed draft BEFORE submitting: identical fields → the confirmation carries and the submit contains those fields only — but ONLY for steps the confirmed preview actually displayed live; a LATER form the preview never showed (multi-step statistics/history_stats) re-previews from its live schema and re-confirms even when it matches the observed draft. ANY divergence (fields, defaults, enum options, visible conditions, extra/reordered steps) → stop, re-preview from the live form, and re-confirm — a live form never silently narrows or widens the confirmed payload (../ha-nova/live-schema-preflight.md)--jq on a submit: the terminal one carries verificationverification. The CLI re-read the entry by the terminal entry_id (built-in integration, loaded), its linked_entities, and, when it supports options, its options (suggested values, null when none) from an options flow it aborted unsubmitted.
passed: true → report from it; linked entities are secondary evidence onlypassed: false → the helper may exist but is unverified: say so with its problemverification → the CLI is older than this skill: say the create is unverified and HA NOVA needs an updatestatistics/history_stats: the state-attribute read).entry_iddomaintitlelinked_entities[]supports_optionssupports_options is false for this entry:
update unsupported for this helper on this HA versionha-nova relay core --method POST --path /api/config/config_entries/options/flow --body-file <start-payload-file>
with <start-payload-file> containing {"handler":"<entry_id>","show_advanced_options":false}.flow_id before continuing.
update unsupported for this helper on this HA versionflow_iddescription.suggested_value as the current value sourcedescription.suggested_value, fail loud instead of guessing its current valuehistory_stats, preserve HA's two-key window invariant across start, end, and durationhistory_stats, if the requested change switches to a different valid window pair, drop the old third key explicitly so the submit body still contains exactly two of start, end, and durationtemplate, when the change touches the state template, resolve every entity ID referenced in the NEW template before submitting (entity registry, then /api/states/<entity_id> fallback — YAML/manual entities are absent from the registry but valid) — a typo like is_state('binary_sensor.typo','on') renders a clean boolean, so the post-write rendered-state read cannot catch it; a reference missing from both is a blocking question, not a submitthreshold helper whose lower, upper, or hysteresis changes against a physical-process sensor — or whose compared entity_id is swapped while boundaries stay — run the calibration preflight per ../ha-nova/threshold-calibration.md first and carry its findings into the preview. Then preview current vs proposed in the Changes slot with ha-nova diff (see ../ha-nova/write-safety.md → Pre-Write Diff) plus the behavior narrative (write-safety → Behavior narrative). Include an explicit not-saved-yet line and the save question.../ha-nova/confirmation.md → Active Preview Confirmation).ha-nova relay core --method POST --path /api/config/config_entries/options/flow/{flow_id} --body-file <submit-payload-file>
data_schema and re-confirms before its submit (same rule as creates, ../ha-nova/live-schema-preflight.md); then repeat the merge-and-submit rule until terminal create_entry or explicit failure.config_entries/getpassed=true only when the same entry_id still existspassed=true only when the changed fields now appear in description.suggested_value as requesteddescription.suggested_value, fail loud as unverifiable update on this HA versionlinked_entities[] as secondary evidence only.entry_iddomaintitlelinked_entities[] when availableutility_meter, derivative, integration, min_max, threshold, tod, statistics, group, history_stats, template, generic_thermostat, switch_as_x, trend, random, filter, generic_hygrostatdomain is outside that allowlist, stopDELETE /api/config/config_entries/entry/{entry_id} for out-of-scope domainsha-nova:fallback for any other config-entry domainentry_id only when needed to disambiguate duplicate titles/domainssearch/related against up to 3 linked entities before confirmationha-nova plan raw --file <requests.json> item {"endpoint":"core","payload":{"method":"DELETE","path":"/api/config/config_entries/entry/{entry_id}"}}; its say asks. This still applies to cleanup and helpers created earlier in the same session. Multi-helper deletes within ONE family follow ../ha-nova/batch-safety.md; storage and config-entry families never mix. Deleting a helper together with its consumers (cross-family) — and removing a retired device's entities FROM a config-entry group helper as one item of such a cleanup — follows ../ha-nova/grouped-change-set.md → Cross-Family Destructive Cleanup: one manifest, one code; the group-member removal keeps this skill's own preview, ask, and drift check, and goes first.ha-nova apply per its next_step.config_entries/getpassed=true only when the entry_id is absentDo NOT report results to user until complete.
../review/checks.md → Application (storage family: H-01..H-11; H-11 only when a consuming automation/template is in the thread context).../review/checks-extended.md → Helper Threshold Evidence.search/related for the helper entity, max 3 related automations/scripts.Do not pretend H-01..H-11 apply here; H-12/H-13/H-15 apply where the entry's fields are readable, and H-14 when the energy prefs are already loaded in the thread (see checks.md). Instead, run the minimal config-entry post-write contract:
entry_id/diff verification passedentry_id still exists and the reopened options-flow snapshot reflects the requested field changestemplate creates and state-changing updates, additionally read the linked entity via GET /api/states/<entity_id>. A clean numeric/string render confirms the template works. Treat unavailable/unknown as INCONCLUSIVE, not proof of breakage — a source entity can be legitimately unknown, or the template may intentionally return a sentinel; only call it a template defect when the options-flow template or an HA error proves a failure. Either way the config-entry write itself still counts as passedstatistics and history_stats writes, also read the linked entity's state attributes and apply ../ha-nova/write-safety.md → Time-Window Evidence: partial window coverage (age_coverage_ratio below 1) or an invalid source is an advisory in the result, never a failed create — and never describe the value as covering the configured window without that coverage evidencesearch/related against up to 3 linked entitiesReport only what has substance (same rule as the write flow — see ../write/SKILL.md Phase 4): keep Verification (and the editable snapshot when present), but omit an empty Collision check or Advisory — never an empty "none" bucket. When the write is clean, the verification plus a single scope-honest confirmation line suffices (../ha-nova/write-safety.md → Verification Honesty). Multi-target logical changes: plan first per write-safety → Multi-Target Changes. Non-destructive helper worksets (max 10) may confirm as one grouped change set per ../ha-nova/grouped-change-set.md — the per-step save questions and confirmations then collapse into the group's single final question.
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. Write previews, delete prompts, and results render as the Cards defined there (../ha-nova/output-cards.md). The bold labels in both read templates below are semantic slots — localize them at runtime, never print them as literal English headings.
After reading a helper config, present:
**Helper: {name}** ({type})
- {type-specific fields}
For list operations, render the List Frame (output-cards.md):
| Name | Type | Area |
|------|------|------|
After reading a helper config, present:
**Helper: {title}** ({type})
- **Config-entry state:** {state}
- **Linked entities:** {linked_entities}
- **Supports options-flow editing:** {yes/no}
- **Current editable fields:** {field summary from the current options step when available}
For list operations, render the List Frame (output-cards.md; options-flow support and linked entities stay in the per-helper detail read above):
| Title | Type | State |
|-------|------|-------|
Never show raw JSON to the user.
../ha-nova/safety-core.md; not yet in this conversation → read it first; unreadable or incomplete → stop and write nothing.search/related verdicts fail closed: verify ok=true and data is an object before projecting family keys (../ha-nova/relay-api.md → Parsing rule); a failed or unexecuted scan is inconclusive — never a no-consumer result.entry_id is the canonical write identity for the config-entry familysay), even for helpers created earlier in the same session.../ha-nova/confirmation.md → Confirmation Tiers): abandoning an unfinished create flow this skill started (cancel or expired confirmation) DELETEs only that ephemeral flow_id — transient flow state, never a config entry; the user's cancel is sufficient, and this exception never applies to anything already created.get_states../ha-nova/relay-api.md../ha-nova/helper-schemas.md../ha-nova/helper-flow-schemas.md../review/checks.md (self-contained catalog + Application)../ha-nova/update-revert.md — when the user asks to revert, undo, or restore a verified update../ha-nova/config-snapshots.md — capturing the pre-delete snapshot, or restoring from a config snapshotWhat 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