Skip to content
Back to skills

Fallback

ASecurity

Mandatory fallback for any HA NOVA task without a dedicated subskill. Must be invoked before any raw relay write operation. Covers Apps and Zigbee/Z-Wave.

  • 20 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added October 23, 2026
ai-agentsgoreactnoderailsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add markusleben/ha-nova --skill fallback --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fallback?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fallback
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/markusleben-fallback/badge)](https://www.skillsdirectory.com/skills/markusleben-fallback)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fallback
description: Mandatory fallback for any HA NOVA task without a dedicated subskill. Must be invoked before any raw relay write operation. Covers Apps and Zigbee/Z-Wave.
license: MIT
compatibility: Requires the ha-nova CLI (run 'ha-nova setup' first) and the HA NOVA Relay in Home Assistant (App, or standalone container on Container/Core).
---

# HA NOVA Fallback


## Scope

Mandatory fallback for HA features without a dedicated skill. Three tiers:

- **Relay-Ready**: API works via Relay, no skill yet -- provide experimental relay calls with safety guardrails.
- **Roadmap**: Planned for future Relay phases -- explain timeline + workaround.
- **External**: Outside HA NOVA scope -- web search + HA UI pointer.

All relay calls in this skill are experimental -- always follow the Safety section below.

## Bootstrap (before Home Assistant tasks)

Read and follow `../ha-nova/session-bootstrap.md` before the first
Home Assistant or Relay-Ready task in this session.

Relay health is needed only when executing experimental relay calls, not for
Roadmap/External guidance.

## Relay Contract

For every Relay-Ready call in this skill:
- write request JSON with the client's native file-writing tool
- use `ha-nova relay ws --data-file <payload-file>` or `ha-nova relay core --method <METHOD> --path <PATH> --body-file <payload-file>`
- use `--out <result-file>` for large responses
- a write that Safety below gates with a window, phone, or code goes only as a `ha-nova plan raw --file <requests.json>` item, then `ha-nova apply`; its `say` asks
- treat inline `-d` as an optional tiny diagnostic path, not the canonical contract
- raw writes are deny-by-default: the CLI sends only the writes and WebSocket types the skills use; any other write or type is refused (exit 4, nothing sent). That refusal is the answer: one that names a plan goes through it, any other points to the Home Assistant UI; never retry through another endpoint
- transports diverge on empty write bodies: WS validates missing required fields fail-closed, but a parameterless WS write executes on its bare `type`, and `/core` POST may silently CREATE — read `../ha-nova/relay-api.md` → Write-Probing Asymmetry before any experimental write

## Capability Map

| Feature | Status | Skill |
|---------|--------|-------|
| Automations / Scripts CRUD | Covered | read / write |
| Config Review | Covered | review |
| Helpers (9 storage + 16 config-entry) | Covered | helper |
| Entity Search | Covered | entity-discovery |
| Service Calls | Covered | service-call |
| Relay Setup | Covered | onboarding |
| Dashboard / Lovelace (storage lifecycle, cards, resources) | Covered | dashboard |
| Scenes (storage CRUD) | Covered | scene |
| History / Logbook / Statistics queries | Covered | history |
| System Health / Repairs | Covered | health |
| Logs / diagnostics (why something specific failed: traces, history, root cause) | Covered | diagnose |
| Host / Supervisor / App logs | Covered | diagnose (the user reads them in Home Assistant: diagnose → Logs) |
| Media players (transport, volume, source, grouping, browsing, TTS announce) | Covered | media |
| Notifications (targets, mobile-app sends, persistent notifications) | Covered | notify |
| Actionable-notification callbacks (waiting for a button press) | Covered for the durable path | write (an automation on `mobile_app_notification_action`) |
| Cameras (snapshot, stream URL, record) | Covered | camera |
| MQTT (bounded topic listening, discovery/debug info, publish) | Covered | mqtt |
| Voice / Assist (utterance tests, pipelines and their debug runs, entity exposure, engines) | Covered | assist |
| Persons, zones, tags; user accounts (list, create, edit, delete — with owner/system guards); system general settings (name, location, units, time zone, currency, language, URLs) | Covered | admin |
| Labs features, analytics sharing | Covered | admin |
| YAML-only configuration (template/REST/command-line sensors, packages, themes) | Covered | yaml-config |
| External data stores (InfluxDB, Prometheus, ...) | Covered | external-sources |
| Weather forecasts (`weather.get_forecasts`) | Covered | service-call |
| Calendar Events (read / create / update / delete) | Covered | calendar |
| Custom events / known JSON webhooks | Covered (raw firing refused: `automation.trigger`) | service-call |
| Alarm / lock runtime control | Covered | service-call |
| To-do Lists (items + Local To-do lifecycle) | Covered | todo |
| Areas, floors, labels, categories (CRUD, entity category assignment), entity / device metadata | Covered | organize |
| Device replacement (re-point consumers), onboarding, retirement | Covered | device |
| Blueprints (import, save, instantiate, delete) | Covered | write |
| Energy (analysis + source/device config) | Covered | energy |
| Statistics repair / import / Purge / Entity registry remove | Covered | maintenance |
| Device deletion (integration-supported, HA 2026.9+) | Covered | organize |
| Integration onboarding (add / re-auth an integration via config flow) | Covered | integration-setup |
| Custom-integration configuration APIs — the integration's OWN endpoints (Alarmo, Scheduler, Frigate, ...) | Relay-Ready (reads only; changes: the integration's own panel in the UI) | this skill |
| Event capture — bounded window (a button's event, a short watch after an action) | Relay-Ready | this skill; `mqtt` for MQTT topics |
| Event streaming — continuous | Roadmap Phase 1c | -- |
| Backups (status, create, inspect, delete, automatic settings) | Covered | backup |
| Config snapshots (targeted capture/restore per item family) | Covered | the owning family skill (see `../ha-nova/config-snapshots.md`) |
| Updates (pending, release notes, install, skip) | Covered | updates |
| Apps / Supervisor: store, install, uninstall, settings, auto-update, system and storage info (`../updates/apps.md`; start/stop/restart and host reboot: `service-call`; repositories, DNS, network, OS, and Supervisor settings stay in the HA UI: Settings > Apps, Settings > System) | Covered | updates |
| HACS (registration, download, version switching, uninstall, migration) | Covered | hacs |
| Marketplace (built-in HACS, Home Assistant 2026.11+): inventory; installs, updates, and removals as Home Assistant steps | Covered read-only | hacs |
| Zigbee pairing: open, close, status, remove | Covered | integration-setup |
| Z-Wave / Matter pairing; radio network config | External | -- (see below) |
| Zigbee / Z-Wave network status (read-only device list / network reads) | Relay-Ready | this skill; Z2M bridge topics: `mqtt` |
| Alarm / lock code management (lock user codes, alarm PINs) | External | -- (Home Assistant UI; codes never enter chat) |
| Integration entry lifecycle (remove, reload, subentry add/reconfigure/rename/delete) | Covered | integration-setup |
| Integration entry options / reconfigure (standard config-entry flows) | Covered | integration-setup |
| Integration entry enable/disable, rename, system options, ignoring a discovery | Covered | integration-setup |
| Matter / Thread status (border router, datasets, node diagnostics) | Relay-Ready | this skill |
| Matter / Thread commissioning | External | -- (not in HA NOVA yet; the Home Assistant phone app, see below) |
| Assist custom sentences / intent scripts | Covered | assist (owning workflow; file mechanics stay in `../fallback/relay-ready.md`) |
| Creating a calendar (the `local_calendar` integration) | Covered | integration-setup |
| Device category assignment | Not a Home Assistant surface | -- (devices carry no category; entity categories are `organize`) |

Rows classify the operation, not the integration's brand. Precedence: first a
row naming the operation itself (code management, helper families,
onboarding); then the surface the change would actually call — the
integration's own endpoints → custom-integration row; a standard config-entry
options/reconfigure flow → the integration-entry row even on a custom
integration, never the custom-API row; neither surface → External. Still
overlapping or unclear? Research the surface first, then take the least
permissive matching row (External over Relay-Ready).

## Flow

```
1. Check Capability Map for user's request. A status may carry a qualifier
   after the canonical word ("Covered for the durable path") — branch on the
   canonical word and read the qualifier as scope, not as a new status.
2. If "Covered" -> STOP, use the listed skill instead
2a. If "Not a Home Assistant surface" -> the request rests on a wrong premise.
   Say what does not exist, name what the user probably meant, and hand off
   to the skill in the owner cell. Never research a payload for it: there is
   no endpoint to find, and searching produces a plausible-looking API that
   is not real.
3. If "Relay-Ready":
   a. FIRST: Search web using the provided Search query — understand current payload schema before any call
   b. Show experimental relay call examples informed by search results
   c. If the endpoint matches a row in Write Safety by Endpoint Type (below), classify it BEFORE drafting: full-document writes need read-merge-verify, never partial payloads. Endpoints the table does not cover split by where their schema comes from. For response-driven flows, submit exactly the fields the LIVE response named, never the fields the research step suggested — research is how you understand the flow, the response is what you answer. Standard config-entry flows belong to `integration-setup` or `helper`, blueprints to `write`. Other writes require a researched current schema and full-payload preview; never guess fields.
   d. Execute only after user confirms that exact preview (see `../ha-nova/confirmation.md` → Active Preview Confirmation)
4. If "Roadmap":
   a. Explain which phase and what blocks it
   b. Search web for manual workaround or alternative approach
   c. Suggest HA UI as interim solution
5. If "External":
   a. Explain why it's outside HA NOVA scope
   b. Search web for current best practice (how to do it directly in HA)
   c. Point to HA UI path
```

External storage becomes scannable only through a documented adapter (`../ha-nova/consumer-discovery-preflight.md` → Extension Adapter Contract) — never by ad-hoc parsing.

**Web search is mandatory for Relay-Ready writes.** The relay call examples below cover common read patterns, but write payloads change across HA versions. Always verify the current schema via web search before constructing a write payload.

## Relay-Ready Features

Per-feature payloads, search queries and caveats live in
`../fallback/relay-ready.md`. Read it when the Capability Map row says
`Relay-Ready`; the Flow branch above still governs how to use them.

## Roadmap Features

### Event Subscriptions -- ROADMAP (Phase 1c)

Real-time event streams for state changes, automation triggers, and custom events.

**Search:** `home assistant event subscription state_changed real time api 2026`

**Status:** CONTINUOUS streams are Phase 1c, blocked by the absence of an SSE
endpoint. BOUNDED capture already works: wrap the subscription in a
`collect_events` envelope (max 100 events, max 10 s — `../ha-nova/relay-api.md`
→ Bounded Event Collection) and the relay unsubscribes for you. That is enough
to answer "what event does this button fire" or to watch a short window after
an action; `ha-nova:mqtt` uses exactly this pattern.
**Workaround for anything longer:** an automation that reacts and notifies
(`ha-nova:write`), or polling `GET /api/states/{entity_id}`.

## External Features

### HACS (Home Assistant Community Store) -- COVERED

Owned by `ha-nova:hacs` (schema-guarded WS command map, reconcile loops,
consumer discovery, migration backup gate). Hand off there; never probe
`hacs/*` WS commands from this skill. Home Assistant 2026.11+ builds HACS in
as the Marketplace: hand off the same way (never probe `marketplace/*` here);
`ha-nova:hacs` reads its inventory and gives the Home Assistant steps for the
rest.

### Z-Wave / Matter Pairing and Network Configuration -- EXTERNAL

Zigbee (ZHA, Zigbee2MQTT): `ha-nova:integration-setup` pairs it. HA NOVA doesn't pair Z-Wave or Matter devices yet. Say exactly that; never claim pairing is impossible or needs special hardware access.

**Alternative:** in Home Assistant, Settings > Connectivity > Zigbee, Z-Wave, or Matter > Add device. Matter: do this in the Home Assistant phone app, close to the device (it uses Bluetooth).

**Search:** `home assistant zigbee2mqtt zha zwave matter network configuration 2026`

## Error Handling

Experimental calls may fail with unfamiliar errors. Full relay/upstream error taxonomy: `../ha-nova/relay-api.md` → Error Handling. Fallback-specific rules:

- `400/VALIDATION_ERROR`: payload schema wrong -- search web for current WS type schema
- `404/NOT_FOUND`: endpoint may not exist in this HA version -- check HA release notes
- `502/UPSTREAM_*` transport errors: verify state/config first (see `relay-api.md` → Timeout and Retry Guidance); retry once only when verification shows no change, then route to `ha-nova:onboarding`

## Output Format

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`).

Every experimental call result carries the plain caution line where required and summarizes verified outcomes only.

## Safety

- 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.

Premise handling:
- Correct invalid Home Assistant premises explicitly.
- Do not silently compensate for a wrong premise.
- Keep corrections brief.

Rules for all experimental relay calls in this skill:

- Drafts follow `../ha-nova/smallest-solution.md`: the complete requested outcome in the simplest safe design, nothing speculative.

- Read before write: fetch current state first for any destructive operation
- **Full-document overwrites** (e.g., `lovelace/config/save`): MUST read full config, merge changes in memory, preview merged result with a plain-language behavior line (`../ha-nova/write-safety.md` → Behavior narrative), then write. There is no partial update endpoint — the entire config is replaced. After the write, read the document back and verify both the intended change and the survival of unrelated content (views, cards, sources) before reporting success.
- **Field-level list replacements** (e.g., `energy/save_prefs`): omitted top-level keys are preserved, but each provided key replaces its entire list. To add one item, read the existing list first, append, then save back the full list. After the write, read the prefs back and verify the pre-existing list items survived alongside the new one.
- **Web search before write**: always search for current payload schema before constructing any write payload. HA APIs evolve across versions — the examples in this skill are starting points, not authoritative schemas.
- **Schema discovery never probes writes**: never send an empty or partial body to a `/core` POST path to elicit a validation error — `/core` has no schema check and may CREATE an object instead — and never send a bare WS `type` you have not verified to be read-only, because a parameterless write command executes immediately (`../ha-nova/relay-api.md` → Write-Probing Asymmetry). Empty-body probing is limited to WS commands already documented as read-only; the write schema still comes from web search.
- **Pre-delete `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.
- Every experimental call must say plainly: "HA NOVA has no special safety check for this, so please check it carefully."
- **No diff or auto-undo here**: these writes have no `## Changes` preview or `revert`. When a write may be hard to reverse, say so plainly and point to Home Assistant Backups (Settings > System > Backups) as the safety net before confirming.
- One resource at a time (no batch writes)
- Experimental results may be unexpected — verify data-target match before presenting conclusions (see `../ha-nova/SKILL.md` → Claim-Evidence Binding)

### Write Safety by Endpoint Type

| Type | Behavior | Safe pattern | Examples |
|------|----------|-------------|----------|
| Full-document overwrite | Entire config replaced | Read → modify → save full document → read back and verify unrelated content survived | `lovelace/config/save` |
| Field-level list replace | Omitted keys preserved, provided keys fully replaced | Read existing list → append/modify → save full list → read back and verify pre-existing items survived | `energy/save_prefs` |
| Merge/patch | Only provided fields updated; a list field (`labels`, `aliases`) and an entity's `options` (one whole per-domain object) are replaced whole | Send only changed fields; read first and send the whole list or `options` object | `config/area_registry/update`, `config/entity_registry/update` |
| Delete | Irreversible for areas/zones/labels | Always `search/related` first; only as a `ha-nova plan raw` item, then `ha-nova apply` (the plan asks) | `config/area_registry/delete`, `config/label_registry/delete` (entity removal → `ha-nova:maintenance`) |

No HA WS endpoint has optimistic locking (no ETags, no version numbers). Last writer wins silently.

### Anti-Patterns (never do this)

- Sending `lovelace/config/save` with a guessed or partial payload — this overwrites the ENTIRE dashboard config, destroying all other views and cards
- Sending `energy/save_prefs` with a single source — this replaces the entire `energy_sources` list, deleting all existing sources
- Probing write endpoints to "see what happens" — read the Relay-Ready section first
- Sending an empty or partial body to a `/core` POST path to discover its schema — WS validates fail-closed, HTTP POST silently creates (`relay-api.md` → Write-Probing Asymmetry)
- Skipping this skill and going straight to `ha-nova relay ws`/`ha-nova relay core` for unfamiliar operations
- Using trial-and-error to discover payload schemas — search web for the WS type schema instead

Files in this skill

  • SKILL.md19.6 KB
  • relay-ready.md16.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.