Check a Home Assistant configuration
Path: $ARGUMENTS, or /config if it exists, else the current folder.
Scripts live in ${CLAUDE_PLUGIN_ROOT}/skills/homeassistant-config/scripts/.
- Version:
cat <path>/.HA_VERSION, andha core info 2>/dev/null | grep -E '^(version|version_latest):'to see if an update is waiting. - YAML and syntax rules for every file:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/homeassistant-config/scripts/validate_yaml.py" <path> --quiet - Structure:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/homeassistant-config/scripts/check_config.py" <path> - Dashboards: run
lovelace_validator.pyon each YAML dashboard and on<path>/.storage/lovelaceand<path>/.storage/lovelace.*(UI dashboards are stored there as JSON;lovelace_dashboardsandlovelace_resourcesare lists, not dashboards, and are skipped). If reading.storageis denied by the user's permissions, skip this step and say so. Files likelovelace.backup*are copies, not live dashboards:jq -r '.data.items[].url_path' <path>/.storage/lovelace_dashboardslists the live ones (pluslovelace, the default). Report copies separately. - Home Assistant's own check, if available:
ha core check.
Then report briefly:
- Will not work (errors), grouped by file, with line numbers and the fix.
For dashboards, also say where it is from the finding's
where(view title and tab, section heading, card number and type): UI dashboards have no line numbers, and that is what the user sees in the editor. - Deprecated / ignored (warnings): what breaks and when.
- Old style, still works (info): just a count per file, plus one line
offering
/ha-upgradeto modernise them. - Upcoming: what will need changes when they update (if an update is waiting, say which release it is).
- Not loaded: how many files were skipped because nothing includes them
(archive or draft folders); offer
--include-unloadedif they want those too. - Imported blueprints: one line with how many there are and their old-style
count (
imported_blueprints). They are updated by re-importing, not by editing. - Anything
ha core checksaid that the scripts did not. If it disagrees with the scripts, Home Assistant is right.
Never print values from secrets.yaml, or passwords and keys you see in other files (ESPHome nodes keep them in plain text). Do not change files in this command;
offer to fix the errors and wait for the user.


