Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

homeassistant-config

БесплатноЗапускает вложенные скриптыНе проверен

Write, fix and modernise Home Assistant YAML with current (2026) syntax — automations, scripts, scenes, template entities, blueprints, packages…

ESJavadexот ESJavadex★ 28 звёзд на GitHub26 установок в других каталогах

Об этом скилле

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 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 (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

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
Полный SKILL.md на GitHub

Установить homeassistant-config в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/automations.yamlexamples/configuration.yamlexamples/lovelace-custom-cards.yamlexamples/lovelace-dashboard.yamlexamples/scenes.yamlexamples/scripts.yamlexamples/secrets.yamlexamples/templates.yamlreferences/ai-and-assist.mdreferences/best-practices.mdreferences/blueprints.mdreferences/lovelace.mdreferences/patterns.mdreferences/templates.mdreferences/troubleshooting.mdscripts/check_config.pyscripts/find_duplicates.pyscripts/ha_yaml.pyscripts/lovelace_validator.pyscripts/validate_yaml.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить homeassistant-config с