ha-dashgen

ha-dashgen is a skill for Claude Code from larsboes/Axon. It costs 125 tokens per session (955 once invoked), scanned A, original, MIT.

A dashboard generator for Home Assistant, the system that controls smart-home devices. It turns a model of a house into three Lovelace dashboards, checks them against the live system, and can back them up and deploy them.

In plain words
What is it for?
Use it to build, validate, create, back up, and deploy Home Assistant dashboards from a house model.
Why use it?
It catches missing device references, duplicated controls, and accidentally removed controls before dashboards are pushed to Home Assistant. Keeping the house model separate also lets the same dashboard logic serve different homes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build, validate, create, back up, and deploy Home Assistant dashboards from a house model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/larsboes/axon/ha-dashgen
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-dashgen
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-dashgen

README.md
[![agentmods](https://agentmods.dev/badge/skills/larsboes/axon/ha-dashgen/github.svg)](https://agentmods.dev/skills/larsboes/axon/ha-dashgen)
Your own site
<a href="https://agentmods.dev/skills/larsboes/axon/ha-dashgen"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-dashgen/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-dashgen

Your own site · 80×15
<a href="https://agentmods.dev/skills/larsboes/axon/ha-dashgen"><img src="https://agentmods.dev/badge/skills/larsboes/axon/ha-dashgen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 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.00125 $0.00955
Opus 5 $0.00063 $0.00477
Sonnet 5 $0.00025 $0.00191
Haiku 4.5 $0.00013 $0.00096

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

Security

Grade A, and why

ha-dashgen 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 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (lib/cards.ts, lib/compose.ts, lib/views.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-dashgen/SKILL.md · 65 lines

How it starts

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

ha-dashgen

Dashboards as code. A TypeScript model of the house goes in, three deployed dashboards come out, and check refuses to let a dashboard reference an entity that does not exist or quietly lose a control the previous one had.

Commands

scripts/ha-dashgen build     # model -> JSON in <overlay>/config/home-assistant/dashboards/
scripts/ha-dashgen check     # build + validate against the LIVE instance (exit 1 on a problem)
scripts/ha-dashgen ensure    # create any dashboard that does not exist yet
scripts/ha-dashgen deploy    # build, back up each dashboard, then push

Needs AXON_HOME_ROOT (or AXON_OVERLAY_ROOT) and, for anything touching the instance, an unlocked BW_SESSION — it shells out to ha-cli and ha-dashboard, which own the credentials.

What check actually checks

  1. Every entity reference exists on the running instance, including IDs inside Jinja.
  2. No control appears on two peer views. The start view is exempt: it is a shortcut surface, so a favourite tile pointing at a light that also lives in Räume is intended.
  3. Nothing was silently dropped. It diffs against dashboards/baseline-<date>/ and fails on any entity the old dashboard had that the new one lacks, unless model.ts lists it in deliberatelyDropped with a reason. A stale entry — declared dropped but back on a view — also fails.

Run check before deploy. deploy always backs up to dashboards/pre-deploy/ first; lovelace/config/save overwrites in one shot with no undo.

Gotchas

Each of these was found the expensive way against HA 2026.6.3 with a probe dashboard, and the first four blank the entire view, not just the offending card, with nothing in the browser console:

  • condition: template in a conditional card renders "Konfigurationsfehler".
  • A template in section visibility hides the section even when it is {{ 1 == 1 }}. Put the logic in a binary_sensor and use condition: state, which works.
  • custom:mushroom-template-card: a static secondary renders, a templated one comes out empty, and inside a conditional the card takes the view with it. mushroom-chips-card is fine. Prefer a native tile whose entity is a klartext sensor.
  • A weather entity as a view badge, and a binary_sensor badge. View-level badges are not used at all for this reason; heading badges are fine.
  • picture-glance with camera_image and picture-entity on a camera both render nothing here, at camera_view live or auto. Cameras are plain tiles that open the live stream on tap.
  • column_span greater than the view's max_columns collapses the grid to a blank page.
  • A dashboard url_path must contain a hyphen. HA rejects zuhause, accepts mein-zuhause.
  • notify: platforms are not reloadable. A new notify group needs a full restart, not automation.reload.

Read the full file on GitHub · 65 lines

Files

What ships with it

4 files 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. 8d ago First seen · 65 lines · 125 tokens per session scan A 5f49ff5e3d42

Subscribe to this mod's changes

ha-dashgen is a skill published in the GitHub repository larsboes/Axon (1 stars, last pushed today), licensed MIT. It adds 125 tokens to every session and 955 once invoked, about $0.0006 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.