Use 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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Admin?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/markusleben-admin)
---
name: admin
description: Use 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.
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 Admin
## Scope
The people-and-places layer of Home Assistant:
- persons (and which device trackers follow them)
- zones (home, work, school — the geofences presence automations depend on)
- tags (NFC/QR tags)
- user accounts: list, edit (name, administrator, active), and the account lifecycle (create/delete) with hard guards
- Home Assistant's general settings (name, location, units, time zone, currency, language, URLs)
- Labs (experimental features) and analytics sharing
Not in scope: areas, floors, labels, categories (`ha-nova:organize`), automations that USE presence (`ha-nova:write`), or authentication providers and passwords — those stay in the Home Assistant UI on purpose.
## Bootstrap (once per session)
Read and follow `../ha-nova/session-bootstrap.md`.
## Relay Contract
- `ha-nova relay ws --data-file <payload-file>` for reads and other writes
- `--out <result-file>` for large listings
- deletes, accounts, a person's trackers (created with any, or changed), general settings, Labs, and analytics: one WS item through `ha-nova plan raw --file <requests.json>`, then `ha-nova apply`
## Flow
1. **Persons**: WS `person/list` -> `person/create` / `person/update` / `person/delete`.
- a person links `device_trackers` (which follow them) and optionally a `user_id` (their login)
- update resends every mutable field (read first: without `device_trackers` Home Assistant empties them; dropping one needs a `persons` copy first), addressed by `person_id` — never put `id` in the body, Home Assistant rejects it. Zone and tag updates work the same way (`zone_id` / `tag_id`).
2. **Zones**: WS `zone/list` -> `zone/create` / `zone/update` / `zone/delete`.
- a zone is `name`, `latitude`, `longitude`, `radius` (metres), `icon`, `passive`
- **Zones are presence infrastructure.** Changing a radius or deleting a zone silently changes when every presence automation fires. Before any zone change, run WS `search/related` with `{"item_type":"entity","item_id":"zone.<id>"}` (there is no `zone` item type) and name the automations that depend on it — as an advisory, in the preview.
- the `home` zone is special: it comes from core config, not the zone registry. Changing home means changing the location in General settings (step 5) — say so instead of trying to delete it.
3. **Tags**: WS `tag/list` -> `tag/create` / `tag/update` / `tag/delete`. A tag's `tag_id` is what the NFC/QR tag physically carries; scanning fires an event automations listen for. Deleting a tag breaks those automations, not the sticker.
4. **Users**: WS `config/auth/list` shows accounts (`id`, `name`, `username`, `is_owner`, `is_active`, `system_generated`, `group_ids`).
- create payload: `{"type":"config/auth/create","name":"<display name>","group_ids":["system-users"],"local_only":false}` — `system-admin` in `group_ids` makes the account an administrator, so name that in the preview. The password is set in Settings → People, never here
- edit: `{"type":"config/auth/update","user_id":"<id>"}` plus requested fields: `name`, `is_active`, `local_only`, `group_ids` (`["system-admin"]` administrator, `["system-users"]` user). Any access field takes the person's own confirmation; the CLI refuses it for the owner, a system account, and the relay's own account
5. **General settings**: `get_config` reads them; `config/core/detect` suggests location, units, and currency. Change with `config/core/update` plus requested fields: `location_name`, `latitude`, `longitude`, `elevation`, `radius`, `unit_system` (with `update_units` to convert entities), `time_zone`, `currency`, `country`, `language`, `internal_url`, `external_url`. Time zone, units, and language take the person's own confirmation: history and long-term statistics shift, and units can raise unit mismatches (`ha-nova:maintenance`). The location is the `home` zone: name presence automations (step 2's `search/related` on `zone.home`).
6. **Labs and analytics**: `labs/list` lists features; `labs/update` with `domain`, `preview_feature`, `enabled` takes the person's own confirmation; a backup first runs through `ha-nova:backup`, never `create_backup`. `analytics` reads what is shared; `analytics/preferences` with `preferences` (only changed keys of `base`, `diagnostics`, `usage`, `statistics`, `snapshots`) is previewed.
7. Verify every write by re-reading the list (`get_config` for settings) — never from the command response alone.
## User Safety (read before touching accounts)
- **Never delete the owner** (`is_owner: true`). Home Assistant would be left without an administrator. Refuse and explain.
- **Never delete a `system_generated` account** — those belong to integrations, not people.
- **Never delete the account whose token this relay uses.** Identify it first with WS `auth/current_user`; if that call fails, do not delete any account.
- Deleting a user does not delete their person entry, their history, or their long-lived tokens' effects — say so.
## Error Handling
Full relay/upstream error taxonomy: `../ha-nova/relay-api.md` -> Error Handling. Admin specifics:
- `config/auth/*` requires owner/admin rights upstream: a permission error here means the Relay's upstream credential lacks HA admin (App: Supervisor credential; container: the host-side `HA_LLAT`), not that the command is wrong.
## 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`).
Render the Report shape (output-cards.md); person/zone/user inventories render the List Frame. For persons: name, device trackers, linked user. For zones: name, radius, and which automations depend on them. For users: name, whether they are owner/active/system-generated — never their tokens or credentials. State what was verified after the write.
## 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.
- Drafts follow `../ha-nova/smallest-solution.md`: the complete requested outcome in the simplest safe design, nothing speculative.
- `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.
- Zone and person deletes ask the person (the plan's `say`), and the preview must first name the automations that depend on them (`search/related`).
- User deletion is the strictest operation in HA NOVA: owner, system-generated, and the relay's own account are refused outright, and everything else needs the person's own confirmation plus a plain statement of what is lost.
- Creating a user account grants durable system access, so the person confirms it too — not the ordinary create tier. The preview names the login name, whether the account is an administrator (`group_ids`), and that the password is set in the Home Assistant UI, never here.
- No delete here has a `revert`. Zones, persons, and tags are recreatable from their previewed fields — a tag keeps its physical `tag_id`, but other recreates mint new internal ids, so inbound references stay broken. A deleted user's password, tokens, and history are unrecoverable; the delete preview must say so.
- Offer a safety backup via `ha-nova:backup` before zone, person, and user deletes (not for tag deletes or routine updates).
## Guardrails
- One person, zone, tag, or user per operation.
- Never guess a `person_id`, `zone_id`, `tag_id`, or user `id`.