HA Integration Dev

HA Integration Dev is a skill for Claude Code from tonylofgren/aurora-smart-home. It costs 55 tokens per session (4,328 once invoked), scanned A, original, MIT.

A Python development guide for Home Assistant custom integrations, which connect Home Assistant to devices or online services not covered by built-in integrations. It covers authentication, device and entity registration, updates, diagnostics, Bluetooth, and publishing through HACS.

In plain words
What is it for?
Use it to build or update custom integrations, add configuration and OAuth flows, connect APIs or Bluetooth devices, expose entities and services, and prepare a HACS release.
Why use it?
It helps avoid common integration problems involving asynchronous code, timestamps, stored data, network requests, and invalid entity attributes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aurora plugin — 6 skills, 1 command shipped together

Good fit Use it to build or update custom integrations, add configuration and OAuth flows, connect APIs or Bluetooth devices, expose entities and services, and prepare a HACS release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonylofgren/aurora-smart-home/ha-integration-dev
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 tonylofgren/aurora-smart-home --skill ha-integration-dev
Clone the repo
git clone --depth 1 https://github.com/tonylofgren/aurora-smart-home

Made for: Claude Code.

Or install aurora, the plugin that ships this one along with the rest of its 6 skills, 1 command.

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 Integration Dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonylofgren/aurora-smart-home/ha-integration-dev/github.svg)](https://agentmods.dev/skills/tonylofgren/aurora-smart-home/ha-integration-dev)
Your own site
<a href="https://agentmods.dev/skills/tonylofgren/aurora-smart-home/ha-integration-dev"><img src="https://agentmods.dev/badge/skills/tonylofgren/aurora-smart-home/ha-integration-dev/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 Integration Dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonylofgren/aurora-smart-home/ha-integration-dev"><img src="https://agentmods.dev/badge/skills/tonylofgren/aurora-smart-home/ha-integration-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,328 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.04328
Opus 5 $0.00028 $0.02164
Sonnet 5 $0.00011 $0.00866
Haiku 4.5 $0.00006 $0.00433

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

Security

Grade A, and why

HA Integration Dev 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.

The scan reads SKILL.md. This mod also ships 24 executable files (assets/templates/media-player-integration/__init__.py, assets/templates/media-player-integration/config_flow.py, assets/templates/media-player-integration/const.py, …), 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.

ha-integration-dev/SKILL.md · 495 lines

How it starts

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

Home Assistant Integration Development

Reference skill for developing Home Assistant custom integrations in Python.

Overview

Core principle: Home Assistant integrations run in the same Python process as Core with full filesystem access. Security, proper async patterns, and correct timestamp handling are non-negotiable.

Context: This skill requires understanding the integration type (polling vs push, cloud vs local) before generating code. The DataUpdateCoordinator pattern is mandatory for most integrations.

The Iron Law

TIMESTAMPS: dt_util.now() / dt_util.utcnow() - NEVER datetime.now()
ATTRIBUTES: JSON-SERIALIZABLE ONLY - NO DATACLASSES, NO DATETIME OBJECTS
ASYNC: aiohttp FOR HTTP - NEVER requests
STORAGE: entry.runtime_data - NEVER hass.data[DOMAIN]

The first three rules cause 90% of integration bugs. The fourth rule (runtime_data) is the modern pattern since HA 2024.4 - it provides type safety and cleaner lifecycle management.

The Process

User request
    │
    ▼
Clarify: API type, auth, entities
    │
    ▼
Ask: HACS preparation?
    │
    ▼
Select template
    │
    ▼
Read relevant references
    │
    ▼
Generate integration code
    │
    ▼
Run pre-completion checklist
    │
    ├──if HACS=yes──▶ Generate HACS files ──▶ Deliver integration
    │
    └──if HACS=no───▶ Deliver integration

Common Pitfalls

Watch out for these Iron Law violations:

Thought Reality
"datetime.now() is fine" WRONG. Use dt_util.now() for timezone-aware timestamps
"I'll store the dataclass in attributes" WRONG. Convert to dict or extract primitive fields
"requests is simpler" WRONG. Use aiohttp or async_get_clientsession
"I'll add unique_id later" NO. Entities without unique_id can't be customized
"This API doesn't need rate limiting" WRONG. Always implement backoff
"I'll skip the coordinator for simplicity" NO. Coordinator centralizes error handling
"Logging the API key helps debugging" NEVER log credentials
"I'll use hass.data[DOMAIN] for storage" OUTDATED. Use entry.runtime_data (typed, HA 2024.4+)
"EntityDescription doesn't need frozen" REQUIRED since HA 2025.1. Use frozen=True, kw_only=True
"Coordinator doesn't need config_entry" REQUIRED. Pass config_entry=entry (deadline HA 2025.11)
"service: in YAML examples" RENAMED. HA calls these "actions" since 2024.8

Read the full file on GitHub · 495 lines

Files

What ships with it

60 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. 9d ago First seen · 495 lines · 55 tokens per session scan A 2c1ccc0e32fa

Subscribe to this mod's changes

HA Integration Dev is a skill published in the GitHub repository tonylofgren/aurora-smart-home (104 stars, last pushed 4d ago), licensed MIT. It adds 55 tokens to every session and 4,328 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

bat-story-eval

Compare MCP tool behavior between target and baseline versions using pre-built and custom stories with diff-based triage.

homeassistant-ai/ha-mcp · 26 tokens

contrib-pr-review

Review a contribution PR for safety, quality, and readiness. Checks for security concerns, test coverage, size appropriateness, and intent alignment. Use when reviewing external contributions.

homeassistant-ai/ha-mcp · 39 tokens

bat-adhoc

Run bot acceptance tests to validate MCP tools work correctly from a real AI agent's perspective. Use when testing PRs, detecting regressions, or verifying tool changes end-to-end with Claude/Gemini CLIs.

homeassistant-ai/ha-mcp · 48 tokens

contributors-update

Find merged PR authors missing from README and update the contributors list after approval.

homeassistant-ai/ha-mcp · 17 tokens

issue-to-pr-resolver

Implement a GitHub issue end-to-end — create a worktree branch, implement the feature with tests, create a draft PR, then iteratively resolve all CI failures and review comments until the PR is clean. Use when you need to fully implement a GitHub issue from start to merge-ready. Triggers on "implement issue", "resolve…

homeassistant-ai/ha-mcp · 85 tokens