ha-dashboard

ha-dashboard is a skill for Claude Code from larsboes/Axon. It costs 167 tokens per session (1,314 once invoked), scanned A, original, MIT.

A Python tool for managing Home Assistant Lovelace dashboards through Home Assistant's WebSocket connection. Lovelace is Home Assistant's dashboard interface.

In plain words
What is it for?
Listing dashboards, saving a dashboard configuration to a file, deploying a file to a dashboard, and creating a new sidebar dashboard.
Why use it?
It handles dashboard configuration through the connection where that configuration is stored, while keeping the server address and access token separate.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Listing dashboards, saving a dashboard configuration to a file, deploying a file to a dashboard, and creating a new sidebar dashboard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/larsboes/axon/ha-dashboard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add larsboes/Axon --skill ha-dashboard
Clone the repo
git clone --depth 1 https://github.com/larsboes/Axon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-dashboard

README.md
[![agentmods](https://agentmods.dev/badge/skills/larsboes/axon/ha-dashboard/github.svg)](https://agentmods.dev/skills/larsboes/axon/ha-dashboard)
Your own site
<a href="https://agentmods.dev/skills/larsboes/axon/ha-dashboard"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-dashboard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-dashboard

Your own site · 80×15
<a href="https://agentmods.dev/skills/larsboes/axon/ha-dashboard"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-dashboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,314 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00167 $0.01314
Opus 5 $0.00084 $0.00657
Sonnet 5 $0.00033 $0.00263
Haiku 4.5 $0.00017 $0.00131

Measured 9d ago against content hash 98dab0da2b9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ha-dashboard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Packs/home-automation/skills/ha-dashboard/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ha-dashboard

Deploy and back up Home Assistant Lovelace dashboards over the WebSocket API. Lovelace dashboard config lives behind HA's WebSocket API, not its REST API, so this is a pure-Python-3 stdlib WebSocket client (socket + ssl + base64 + hashlib) — no websockets package, no pip install. Commands: list, backup, deploy, create. The non-secret HA_URL comes from the committed overlay config; the secret HA_TOKEN comes from a Bitwarden item at runtime, never hardcoded.

Setup (once)

  1. In Home Assistant: create a long-lived access token (Profile → Security → Long-lived access tokens). That token is HA_TOKEN.
  2. In the overlay config: set HA_URL (e.g. http://<host>:8123, or an https:// reverse-proxy URL) in <overlay>/config/home-assistant.vars (override the root with $AXON_HOME_ROOT). The WebSocket URL is derived from it.
  3. In Bitwarden: an item home-assistant/ha (override with $HA_BW_ITEM) holding only the secret field HA_TOKEN — the same item ha-cli uses. Provision via Axon setup-secret.sh.
  4. Point bw at the vault once: bw config server <vault-url>.

Run

Unlock Bitwarden interactively, then call (the tool reads $BW_SESSION, never the master password):

export BW_SESSION=$(bw unlock --raw)

# Inspect
scripts/ha-dashboard list                       # every named dashboard + the default
scripts/ha-dashboard list -j                     # JSON

# Back up before overwriting (default dashboard, or a named one)
scripts/ha-dashboard backup                       # -> default_dashboard_<ts>.json
scripts/ha-dashboard backup --url-path <slug>     # -> <slug>_dashboard_<ts>.json
scripts/ha-dashboard backup --url-path <slug> -o mydash.json

# Deploy a config file (JSON always; YAML only if PyYAML happens to be installed)
scripts/ha-dashboard deploy mydash.json --url-path <slug>
scripts/ha-dashboard deploy overview.json          # omit --url-path = default dashboard

# Create a new sidebar dashboard, then deploy into it
scripts/ha-dashboard create <slug> --title "My Dashboard" --icon mdi:home

Read the full file on GitHub · 86 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 86 lines · 167 tokens per session scan A 98dab0da2b9e

Subscribe to this mod's changes

ha-dashboard is a skill published in the GitHub repository larsboes/Axon (1 stars, last pushed yesterday), licensed MIT. It adds 167 tokens to every session and 1,314 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.