/homeassistant-config:ha-upgrade [file or folder, default /config]from Home Assistant Config
Upgrades Home Assistant YAML configuration files to current syntax, fixing legacy template entities, removed color_temp/kelvin, renamed triggers, and deprecated keys. Use when migrating or cleaning up old configs.
Ships in Home Assistant Config. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Target: $ARGUMENTS, or /config.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/homeassistant-config/scripts/validate_yaml.py" <target> --quiet
and, for dashboards, lovelace_validator.py. Get the HA version
(cat /config/.HA_VERSION, ha core info) so you never write syntax newer
than the install.
Before an update: ha core info shows version_latest; re-run the
validator with --ha-version=<that release> to list what the update will
break, and fix that first.platform: template,
color_temp/kelvin, removed trigger IDs, mixed old/new keys);service: → action:, platform: → trigger:, plural keys):
purely cosmetic, only if the user wants it.
Imported blueprints (the validator counts them under
imported_blueprints, they have a source_url) are left alone: they are
updated by re-importing a newer version (Settings > Blueprints > Re-import),
and an edit would be lost on the next re-import. Mention them, don't edit
them, unless the user asks. The user's own blueprints are upgraded like any
other file.
Ask which levels to apply. Stop here until they answer.git -C /config rev-parse --is-inside-work-tree), git is the backup:
check git -C /config status --short. If the files you will touch have
uncommitted changes, ask the user to commit them first. Make no .bak
files there: a nightly git add . would commit them.mkdir -p /config/.claude-backups/$(date +%Y%m%d-%H%M) and cp each file
there, keeping its relative path.yaml.safe_load +
yaml.dump, sed over the whole file): that drops comments and !include
/ !secret tags, and a script that fails halfway leaves the file empty.
Read references/templates.md (legacy → modern template table) and
references/patterns.md (renamed triggers) from the homeassistant-config
skill first. Rules:
template:, keep the entity ID with
default_entity_id: sensor.<old_object_id> and add a unique_id.color_temp (mireds) → color_temp_kelvin = round(1000000 / mireds).automations.yaml / scripts.yaml: editing is fine, keep ids..storage/ files while HA is running; for UI dashboards,
tell the user what to change in the editor instead, or edit the JSON
only if they stop Home Assistant first. Name the dashboard and copy the
finding's where (view title and tab, section heading, card number and
type), not just views[1].sections[1].cards[0]: the JSON has no line
numbers and the editor shows titles, not indexes.ha core check if available, then
reload (automation.reload, script.reload, template.reload) or ask the
user to restart when templates moved between domains.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/ha-checkCheck a Home Assistant config folder end to end — YAML syntax with HA tags, removed and deprecated syntax up to 2026.11, dashboards, missing includes, undefined secrets, duplicate ids — and HA's own config check when available. Use when the user asks to check, validate or review their configuration, or before and after a big change./ha-find-duplicatesFind duplicate, near-duplicate and conflicting automations and scripts in a Home Assistant config, and suggest how to merge them. Use when the user asks for duplicates, cleanup, or why two automations fight over the same device./homeassistant-confignpx claudepluginhub esjavadex/claude-homeassistant-plugins --plugin homeassistant-configOther plugins' skills for the same job