Home Assistant Integration logo

Home Assistant Integration

Community
denysdovhan
home-assistant-integration

Use this skill when creating, scaffolding, reviewing, or maintaining Python Home Assistant custom integrations, or researching how core integrations implement common behavior and which patterns to reuse. Covers custom_components, manifests, config flows, options flows, config entries, platforms/entities, DataUpdateCoordinator, integration automation triggers, diagnostics, repairs, discovery/networking, authentication, HACS-ready repositories, and Home Assistant integration quality scale compliance.

Overview

Publisherdenysdovhan
Repositoryhome-assistant-developer
Skill namehome-assistant-integration
Stars
38
Forks
1
Bundled files
8
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by denysdovhan on GitHub. Read the source before you install it.

Installation

Install the Home Assistant Integration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/denysdovhan/home-assistant-developer/tree/main/skills/home-assistant-integration
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/denysdovhan/home-assistant-developer.git /tmp/home-assistant-developer
mkdir -p .claude/skills
cp -r /tmp/home-assistant-developer/skills/home-assistant-integration .claude/skills/home-assistant-integration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Home Assistant Integration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Home Assistant Integration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Home Assistant Integration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Home Assistant Integration Skill

Use this skill for Home Assistant custom integration development and research into reusable core integration patterns. This is separate from Home Assistant automation, helper, script, and Lovelace work.

Start With Current Docs

Fetch current Markdown from Home Assistant Contributors before coding. All upstream doc paths in this skill and its references are relative to this base URL:

text
https://contributors.home-assistant.io/

Each page has a Markdown version at <page URL>index.md. Use core/llms.txt to find current integration pages and marketplace/llms.txt for custom integration packaging and distribution. Start at llms.txt for other areas. Fetch only relevant pages; do not load llms-full.txt by default or copy Home Assistant docs into generated skill or repo files. For human-readable links, omit index.md.

The reference files in this skill are the routing indexes to the doc paths; do not rely on remembered Home Assistant APIs. Always consult the relevant reference, then fetch the current markdown files it points to, before editing matching files:

ReferenceUse when
references/architecture.mdEditing generic integration architecture, lifecycle, setup, manifest, config entries, data fetching, events, diagnostics, auth, networking, docs, tests, or translations
references/core-patterns.mdInvestigating how core integrations implement a behavior, comparing common patterns, or choosing an existing helper or implementation to reuse
references/core-integration-files.mdEditing core integration files such as __init__.py, manifest.json, config_flow.py, coordinator.py, diagnostics.py, repairs.py, services, translations, tests, or docs
references/entities-and-domains.mdEditing platform/entity files such as sensor.py, binary_sensor.py, calendar.py, weather.py, or deciding which platform domain fits a feature
references/automation-triggers.mdAdding or maintaining new integration-provided automation triggers in trigger.py and triggers.yaml
references/quality-rules.mdChecking Bronze/Silver/Gold/Platinum quality scale rules or reviewing an integration against Home Assistant quality requirements

Research Core Patterns

Before designing non-trivial integration behavior, or when asked how core handles it, use references/core-patterns.md to search current core implementations and their tests. Compare relevant integrations, check the underlying helpers and current docs, and recommend the smallest compatible pattern with source links. Skip this research for trivial edits or when the relevant pattern has already been verified for the task.

For research-only requests, return findings and a reuse recommendation without editing the target integration or running the implementation review checklist.

Local Workflow

  1. Inspect local instructions first: AGENTS.md, scripts, pyproject.toml, workflows, README files, and existing custom_components/<domain> files.
  2. Preserve repo conventions. Prefer existing user Home Assistant repo patterns: uv tooling, scripts/lint, scripts/test, typed runtime data, DataUpdateCoordinator, config flows, diagnostics, translations, and minimal diffs.
  3. Keep API/client code Home Assistant agnostic where the repo already separates it from integration code.
  4. Use config entries and UI setup by default for real integrations. Use YAML only when the user explicitly asks or the existing repo still requires it.
  5. Keep entities cheap: no I/O in entity properties; update cached values through setup, coordinator refreshes, or event callbacks.
  6. Use ConfigEntry.runtime_data for runtime objects when adding or reshaping integration state.
  7. Handle setup failures with the Home Assistant exceptions that match the failure: retryable setup failures, auth failures, and permanent invalid configuration should not be conflated.
  8. Add tests for changed behavior. Run the repo scripts requested by local instructions, usually scripts/lint after Python changes and scripts/test before finishing.
  9. When behavior is unclear, add narrow debug logging or ask for logs instead of guessing.

Scaffolding Guidance

When scaffolding a new integration from an existing user repo, copy structure and tooling style, then remove business logic that does not belong to the new integration. Keep only the integration basics needed for setup, manifest validity, importability, testability, and future feature work.

Minimum shape for a custom integration is usually:

text
custom_components/<domain>/
  __init__.py
  manifest.json

Add files such as config_flow.py, platform modules, coordinator.py, entity.py, diagnostics.py, repairs.py, translations, tests, and brand assets only when required by the requested scope or the selected quality target. Use references/core-integration-files.md before adding or editing these files.

Quality Scale

Default to Bronze. Higher levels are cumulative and should only be added when the user asks or explicitly accepts the extra scope. Bronze means all Bronze rules apply; Silver includes Bronze; Gold includes Silver and Bronze; Platinum includes all lower levels.

Before finishing ordinary integration work, read references/quality-rules.md, confirm the current rule list from core/quality-scale/rules/index.md, fetch the latest markdown for each relevant rule, and verify every Bronze rule against the current code. If the user asks for Silver, Gold, or Platinum, make the additional rule set part of the implementation scope before coding.

Review Checklist

Before finishing:

  1. Re-fetch relevant docs and quality rule files.
  2. Verify the requested quality level, defaulting to Bronze.
  3. Apply core/development/checklist/index.md to the changed files.
  4. Confirm config entry setup, unload, runtime data, entity IDs, translations, diagnostics, and tests match the selected scope.
  5. Run local validation scripts from the repo instructions.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Home Assistant Integration AI skill do?

Use this skill when creating, scaffolding, reviewing, or maintaining Python Home Assistant custom integrations, or researching how core integrations implement common behavior and which patterns to reuse. Covers custom_components, manifests, config flows, options flows, config entries, platforms/entities, DataUpdateCoordinator, integration automation triggers, diagnostics, repairs, discovery/networking, authentication, HACS-ready repositories, and Home Assistant integration quality scale compliance.

Why use Home Assistant Integration on TypingMind?

Because you install it once and use it with any model. Home Assistant Integration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Home Assistant Integration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/denysdovhan/home-assistant-developer/tree/main/skills/home-assistant-integration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Home Assistant Integration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Home Assistant Integration?

As many as you like. As long as a model supports skills, you can use Home Assistant Integration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Home Assistant Integration AI skill free?

Yes. It is published on GitHub by denysdovhan under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇