Logo: Homeassistant Config

Homeassistant Config

Communautéit
ESJavadex
homeassistant-config

Write, fix and modernise Home Assistant YAML with current (2026) syntax — automations, scripts, scenes, template entities, blueprints, packages, configuration.yaml and dashboards. Use whenever the task touches Home Assistant config files (/config or /homeassistant, automations.yaml, scripts.yaml, configuration.yaml, blueprints/, dashboards) or the user asks for an HA automation, sensor, template, blueprint or dashboard, or why one does not work.

Iwwersiicht

EditeurESJavadex
Repositoryclaude-homeassistant-plugins
Skill-Nummhomeassistant-config
Stären
28
Forks
1
Matgeliwwert Dateien
20
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 20 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    ESJavadex huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Homeassistant Config an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/ESJavadex/claude-homeassistant-plugins/tree/main/homeassistant-config/skills/homeassistant-config
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ESJavadex/claude-homeassistant-plugins.git /tmp/claude-homeassistant-plugins
mkdir -p .claude/skills
cp -r /tmp/claude-homeassistant-plugins/homeassistant-config/skills/homeassistant-config .claude/skills/homeassistant-config
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Homeassistant Config an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Homeassistant Config automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Homeassistant Config net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Home Assistant configuration

Home Assistant changes every month and most examples on the internet are old. Write for the version the user actually runs, with the syntax below, and check the result before telling the user it is done.

1. Before writing anything

  1. Find the version. cat /config/.HA_VERSION, or in the Claude Terminal add-on ha core info. Elsewhere: Settings > About. Gate new features on it (table in section 3). The checkers read .HA_VERSION themselves.
  2. Find the config folder. /config on HA OS and in most add-ons, sometimes /homeassistant. configuration.yaml is the root.
  3. Look before you add. Read how the user already organises things (!include, packages/, UI-managed automations.yaml) and follow it. Reuse their entity IDs. If a Home Assistant MCP server is connected (the official MCP Server integration or ha-mcp), use it for entity IDs, live states and Repairs. Otherwise, in the add-on: curl -s -H "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/core/api/states | jq -r '.[].entity_id'. Or ask. Never invent entity IDs.
  4. Back up a file before rewriting it. If the config folder is a git repository (git -C /config rev-parse --is-inside-work-tree), git is the backup: make sure the file has no uncommitted changes, and don't leave .bak files there (a nightly git add . commits them). Otherwise copy it to /config/.claude-backups/<date>/.

2. Rules for current syntax

Write thisNot this (old)Since
action: light.turn_onservice: light.turn_on2024.8
triggers: / conditions: / actions:trigger: / condition: / action: (top-level lists)2024.10
- trigger: state- platform: state2024.10
template: > - sensor: > name: / state:sensor: > - platform: template (removed 2026.6)2026.6
color_temp_kelvin: 2700color_temp: (mireds), kelvin: (removed)2026.3
data: with templates insidedata_template:, service_template:long ago
{{ has_value('sensor.x') }}states('sensor.x') not in ['unknown','unavailable']2023+
entity_name('light.x'), device_name(), area_name()state_attr(x, 'friendly_name') (planned deprecation)2026.4 / 2026.11
time_since(dt)relative_time(dt) (deprecated)—
dashboards: action: perform-action + perform_action:action: call-service + service:2024.8
dashboards: grid_options (12 columns)layout_options2024.11

Hard rules:

  • Never mix old and new keys in the same block (trigger and triggers, service and action): Home Assistant rejects it.
  • 2 spaces, never tabs. Quote "on", "off", "yes", "no" when you mean the string (to: "on"), otherwise YAML turns them into booleans.
  • Targets use IDs, lowercase: entity_id, device_id, area_id, floor_id, label_id (not names).
  • Every new automation gets a unique id: (the UI editor and traces need it) and a clear alias:; pick mode: on purpose (single is the default).
  • Actions that always return data need response_variable:.
  • Supervisor actions (hassio.*) stop the script on failure since 2026.5; add continue_on_error: true when the script should carry on.
  • Some things are UI-only now. http: is imported into the UI once (2026.8) and later YAML edits are ignored; many integrations can no longer be set up in YAML. Check the integration's docs page before writing YAML for it.
  • Edit YAML with the Edit tool, in small exact replacements. Never rewrite a file through a script (yaml.safe_load + yaml.dump): it drops comments and !include / !secret tags, and a script that fails halfway (no PyYAML, a tag it can't parse) leaves the file empty.
  • Imported blueprints (with source_url) are updated by re-importing them, not by editing; leave them alone unless the user asks.
  • Don't edit files in .storage/ while Home Assistant runs. Never print or copy the contents of secrets.yaml; refer to !secret name only.
  • Don't rewrite a user's whole file just to modernise style. Old keys like service: still work. Modernise what you touch; offer /ha-upgrade for the rest.

3. What depends on the version

FeatureNeeds
action: key, plural triggers: / - trigger:2024.8 / 2024.10
Sections dashboards, grid_options2024.11
ai_task.generate_data2025.8
Purpose-specific triggers/conditions (light.turned_on, light.is_on, zone.entered) without Labs2026.7
target: with exclude:2026.11
Blueprint inputs with visible:2026.11

If the version is older than what a feature needs, use the classic form (trigger: state, condition: state). When unsure, the classic form works everywhere.

4. Core snippets

Automation (classic triggers work in every version):

yaml
- id: hallway_motion_light
  alias: Hallway light on motion
  mode: restart
  triggers:
    - trigger: state
      entity_id: binary_sensor.hallway_motion
      to: "on"
  conditions:
    - condition: sun
      after: sunset
  actions:
    - action: light.turn_on
      target:
        area_id: hallway
      data:
        brightness_pct: 60
        color_temp_kelvin: 2700
    - wait_for_trigger:
        - trigger: state
          entity_id: binary_sensor.hallway_motion
          to: "off"
          for: "00:02:00"
    - action: light.turn_off
      target:
        area_id: hallway

Purpose-specific trigger and condition (2026.7+): target: at the top, settings under options:.

yaml
triggers:
  - trigger: light.turned_on
    target:
      area_id: downstairs
    options:
      behavior: first        # each (default) | first | all
conditions:
  - condition: light.is_on
    target:
      entity_id: light.living_room
    options:
      behavior: all          # any (default) | all

Each trigger and condition has its own options: check its page under https://www.home-assistant.io/triggers/ or /conditions/ before using one you have not seen in this skill. Renamed in 2026.5–2026.7 (old IDs no longer work): battery.low → battery.became_low, vacuum.docked → vacuum.returned_to_dock, schedule.turned_on → schedule.block_started, person.entered_home → zone.entered, climate.target_temperature (condition) → climate.is_target_temperature. Full table in references/patterns.md. From 2026.11 the sign of offset on sun.* / calendar.event_* triggers decides before (negative) or after (positive).

Script with fields:

yaml
good_night:
  alias: Good night
  fields:
    delay:
      name: Delay
      default: 5
      selector:
        number: {min: 0, max: 60, unit_of_measurement: s}
  sequence:
    - action: light.turn_off
      target:
        floor_id: ground_floor
    - delay:
        seconds: "{{ delay }}"

Template entity (the only supported format since 2026.6):

yaml
template:
  - sensor:
      - name: Total power
        unique_id: total_power
        unit_of_measurement: W
        device_class: power
        state_class: measurement
        state: "{{ states('sensor.plug_1_power') | float(0) + states('sensor.plug_2_power') | float(0) }}"
        availability: "{{ has_value('sensor.plug_1_power') and has_value('sensor.plug_2_power') }}"

Dashboard card (sections view is the default):

yaml
type: tile
entity: light.living_room
features_position: bottom
features:
  - type: light-brightness
tap_action:
  action: perform-action
  perform_action: light.toggle
  target:
    entity_id: light.living_room
grid_options:
  columns: 6
  rows: 2

YAML-mode dashboards: top-level lovelace: mode: yaml is deprecated (2026.2); use lovelace: dashboards: lovelace: {mode: yaml, filename: ui-lovelace.yaml} plus resource_mode: yaml.

5. Check your work

Run the bundled checkers. They understand !include, !secret and !input (plain yaml.safe_load does not) and know what changed up to 2026.11. If python3 has no PyYAML (a venv), they re-run themselves with the system Python.

bash
# syntax, tabs, duplicate keys, removed/deprecated syntax (file or whole folder)
python3 "${CLAUDE_SKILL_DIR}/scripts/validate_yaml.py" /config --quiet
# dashboards (YAML or .storage/lovelace*)
python3 "${CLAUDE_SKILL_DIR}/scripts/lovelace_validator.py" /config/.storage/lovelace
# structure: missing !include files, undefined !secret names, duplicate automation ids
python3 "${CLAUDE_SKILL_DIR}/scripts/check_config.py" /config
# duplicate and near-duplicate automations/scripts
python3 "${CLAUDE_SKILL_DIR}/scripts/find_duplicates.py" /config

Levels: error = will not work, warning = deprecated or ignored, info = old style that still works, upcoming = fine on the installed release, changes in a newer one. Rules are compared with the installed version (.HA_VERSION); --ha-version=2026.12 previews another release. On a config folder, files that configuration.yaml never loads (archive, drafts) are skipped and listed under not_loaded; --include-unloaded checks them too.

Then let Home Assistant itself check and load it:

bash
ha core check                      # official config check (add-on / SSH)
ha core logs | tail -50            # HA OS has no home-assistant.log since 2025.11
# reload without restarting
curl -s -X POST -H "Authorization: Bearer $SUPERVISOR_TOKEN" \
  http://supervisor/core/api/services/automation/reload

Reload actions: automation.reload, script.reload, scene.reload, template.reload, homeassistant.reload_core_config, homeassistant.reload_all. Without the CLI: Developer tools > YAML > Check configuration. After a change, look at Settings > Repairs too: Home Assistant lists deprecated config there.

ha core check and Repairs have the last word. These rules are written by hand and can lag behind or be wrong for an edge case; if Home Assistant disagrees with them, trust Home Assistant and say so. If the install is newer than 2026.11, the checkers say so: read the release notes for what changed since.

A plugin hook checks every YAML file you write or edit. A broken file (syntax error, tabs, duplicate keys) comes back as a block: fix it at once. Rule findings come back as advice: fix what applies to the user's version.

6. References (read when the task needs them)

FileRead it when
references/patterns.mdwriting automations: motion, presence, notifications, purpose-specific triggers, renames table
references/templates.mdtemplate entities, Jinja, new functions, legacy → modern migration
references/blueprints.mdcreating or fixing blueprints, selectors, input sections
references/lovelace.mdany dashboard work: sections, tile features, badges, visibility, strategies
references/ai-and-assist.mdai_task, Assist, conversation triggers, MCP server
references/best-practices.mdorganising config, packages, naming, performance
references/troubleshooting.mdan automation does not fire, config check errors, 2026 breakages
examples/*.yamlcomplete working files to copy from

Commands in this plugin: /ha-check (check a config folder end to end), /ha-upgrade (find and migrate outdated syntax), /ha-find-duplicates. The ha-suggestions agent proposes new automations from the user's devices.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Homeassistant Config?

Write, fix and modernise Home Assistant YAML with current (2026) syntax — automations, scripts, scenes, template entities, blueprints, packages, configuration.yaml and dashboards. Use whenever the task touches Home Assistant config files (/config or /homeassistant, automations.yaml, scripts.yaml, configuration.yaml, blueprints/, dashboards) or the user asks for an HA automation, sensor, template, blueprint or dashboard, or why one does not work.

Firwat Homeassistant Config op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Homeassistant Config besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Homeassistant Config an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ESJavadex/claude-homeassistant-plugins/tree/main/homeassistant-config/skills/homeassistant-config an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Homeassistant Config benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Homeassistant Config benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Homeassistant Config domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Homeassistant Config gratis?

Jo. ESJavadex huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇