homeassistant-config
БесплатноЗапускает вложенные скриптыНе проверенWrite, fix and modernise Home Assistant YAML with current (2026) syntax — automations, scripts, scenes, template entities, blueprints, packages…
Об этом скилле
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
- Find the version.
cat /config/.HA_VERSION, or in the Claude Terminal add-onha core info. Elsewhere: Settings > About. Gate new features on it (table in section 3). The checkers read.HA_VERSIONthemselves. - Find the config folder.
/configon HA OS and in most add-ons, sometimes/homeassistant.configuration.yamlis the root. - Look before you add. Read how the user already organises things
(
!include,packages/, UI-managedautomations.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. - 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.bakfiles there (a nightlygit add .commits them). Otherwise copy it to/config/.claude-backups/<date>/.
2. Rules for current syntax
| Write this | Not this (old) | Since |
|---|---|---|
action: light.turn_on |
service: light.turn_on |
2024.8 |
triggers: / conditions: / actions: |
trigger: / condition: / action: (top-level lists) |
2024.10 |
- trigger: state |
- platform: state |
2024.10 |
template: > - sensor: > name: / state: |
sensor: > - platform: template (removed 2026.6) |
2026.6 |
color_temp_kelvin: 2700 |
color_temp: (mireds), kelvin: (removed) |
2026.3 |
data: with templates inside |
data_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_options |
2024.11 |
Hard rules:
- Never mix old and new keys in the same block (
triggerandtriggers,serviceandaction): 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 clearalias:; pickmode:on purpose (singleis the default). - Actions that always return data need
response_variable:. - Supervisor actions (
hassio.*) stop the script on failure since 2026.5; addcontinue_on_error: truewhen 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/!secrettags, 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 ofsecrets.yaml; refer to!secret nameonly. - Don't rewrite a user's whole file just to modernise style. Old keys like
service:still work. Modernise what you touch; offer/ha-upgradefor the rest.
3. What depends on the version
| Feature | Needs |
|---|---|
action: key, plural triggers: / - trigger: |
2024.8 / 2024.10 |
Sections dashboards, grid_options |
2024.11 |
ai_task.generate_data |
2025.8 |
Purpose-specific triggers/conditions (light.turned_on, light.is_on, zone.entered) without Labs |
2026.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):
- id: hallway_motion_light
alias: Hallway light on motion
mode: resta
Установить homeassistant-config в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл homeassistant-config?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл homeassistant-config запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic