SKILL.md--- name: homeassistant-config description: Create and manage Home Assistant YAML configuration files including automations, scripts, templates, blueprints, Lovelace dashboards, and file organization. Use when working with Home Assistant configuration files (.yaml, .yml) or discussing HA automations, scripts, sensors, or dashboards. --- # Home Assistant Configuration Skill Create and manage Home Assistant YAML configuration files including automations, scripts, templates, blueprints, and file organization. ## Slash Commands | Command | Description | |---------|-------------| | `/ha-find-duplicates [path]` | Find duplicate automations and scripts in configuration | ### /ha-find-duplicates Scans Home Assistant configuration files to find: - **Exact duplicates**: Automations/scripts with identical triggers and actions - **Similar items**: Items with 80%+ similarity (name, entities, structure) - **Trigger conflicts**: Multiple automations responding to the same trigger Usage: `/ha-find-duplicates /path/to/config` or `/ha-find-duplicates` for current directory. ## Subagents | Agent | Description | |-------|-------------| | `ha-suggestions` | Smart home improvement advisor for automations, scenes, and device recommendations | ### ha-suggestions A proactive smart home consultant that analyzes your Home Assistant configuration and provides personalized suggestions for: - **New Automations**: Motion lighting, presence detection, time-based routines, energy saving - **New Scenes**: Movie night, morning energy, dinner time, work from home, party mode - **Script Improvements**: Reusable sequences and parameterized routines - **Device Recommendations**: Sensors, switches, and integrations to enhance your setup - **Optimization**: Consolidation, trigger efficiency, mode usage, blueprint conversion The agent automatically discovers your configuration files, inventories entities by domain (lights, sensors, climate, etc.), and generates prioritized suggestions with complete, ready-to-use YAML code. ## Validation Scripts This skill includes scripts to validate and analyze Home Assistant configurations. ### YAML Validator Validates YAML syntax and checks for common HA issues (tabs, unquoted booleans, deprecated syntax): ```bash python3 {baseDir}/scripts/validate_yaml.py /path/to/config.yaml python3 {baseDir}/scripts/validate_yaml.py /path/to/config.yaml --strict ``` ### Configuration Checker Analyzes HA configuration structure, finds entities, tracks includes and secrets: ```bash python3 {baseDir}/scripts/check_config.py /path/to/config/directory python3 {baseDir}/scripts/check_config.py /path/to/config.yaml --verbose ``` ### Lovelace Validator Validates Lovelace dashboard configurations (YAML and JSON .storage format): ```bash python3 {baseDir}/scripts/lovelace_validator.py /path/to/ui-lovelace.yaml python3 {baseDir}/scripts/lovelace_validator.py /path/to/.storage/l