Claude Code skill for expert-level Home Assistant configuration management. Enables efficient deployment workflows, remote CLI access, automation verification, and Lovelace dashboard development. Ideal for operations teams managing smart home systems.
git clone https://github.com/komal-SkyNET/claude-skill-homeassistant.gitClaude Code skill for expert-level Home Assistant configuration management. Enables efficient deployment workflows, remote CLI access, automation verification, and Lovelace dashboard development. Ideal for operations teams managing smart home systems.
[{"step":1,"action":"Set up Claude Code with Home Assistant integration by configuring the [HOME_ASSISTANT_CONFIG_PATH] variable in your Claude workspace settings to point to your Home Assistant configuration directory (typically /config).","tip":"Use absolute paths to avoid confusion. Verify the path by running 'ls [HOME_ASSISTANT_CONFIG_PATH]' in Claude's terminal to confirm access."},{"step":2,"action":"Prepare your prompt with specific placeholders filled in. For automations, use the exact entity_id from your Home Assistant instance (found in Developer Tools > States).","tip":"Copy the entity_id directly from Home Assistant to ensure accuracy. Avoid using friendly names as they may not match the actual ID."},{"step":3,"action":"Execute the prompt and review the validation report first. Address any syntax errors or critical issues before proceeding with other tasks.","tip":"Use the validation report to fix issues immediately. For best practice warnings, implement them in your next configuration update cycle."},{"step":4,"action":"Review the automation status report to identify inactive or problematic automations. Focus on automations with recent errors or conditions not being met.","tip":"Sort the automation list by 'last_triggered' to quickly identify recently broken automations. Check the Home Assistant logs for these automations for more details."},{"step":5,"action":"Implement optimization suggestions incrementally. Test each change in a development environment before applying to production, and monitor impact using the energy dashboard.","tip":"Create a separate 'dev' branch in your configuration repository for testing optimizations. Use the Home Assistant Energy dashboard to track real-world impact of changes."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/komal-SkyNET/claude-skill-homeassistantCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a Home Assistant automation expert using Claude Code. Use the [HOME_ASSISTANT_CONFIG_PATH] directory to perform the following tasks: 1) Validate the YAML configuration files for syntax errors and best practices, 2) Generate a report of all active automations with their last trigger time and status, 3) Create a backup of the current configuration with timestamp, 4) Suggest 3 optimizations for the [SPECIFIC_AUTOMATION_NAME] automation based on energy efficiency and reliability metrics. Execute these tasks in sequence and provide a summary of findings.
{"validation_report":{"config_path":"/config/configuration.yaml","validation_status":"PASSED","issues_found":[],"best_practice_warnings":[{"line":42,"warning":"Consider using 'default: []' for empty lists in YAML to avoid ambiguity","suggestion":"Replace '[]' with 'default: []' in the automation trigger section"}]},"automation_status":{"total_automations":18,"active_automations":16,"inactive_automations":2,"automations":[{"name":"Evening Light Automation","entity_id":"automation.evening_lights","last_triggered":"2023-11-15T19:42:11.345Z","status":"active","conditions_met":true,"actions_executed":124,"last_error":null},{"name":"Energy Saver Mode","entity_id":"automation.energy_saver","last_triggered":"2023-11-15T14:30:00.000Z","status":"active","conditions_met":false,"actions_executed":0,"last_error":"Condition 'numeric_state' not met after 10s"}]},"backup_summary":{"backup_location":"/config/backups/2023-11-15_19-45-02_homeassistant.tar.gz","backup_size":"2.4MB","files_included":47,"checksum":"a1b2c3d4e5f6...","verification":"Checksum matches source files"},"optimization_suggestions":{"automation_name":"Energy Saver Mode","current_energy_savings":"12.5% reduction in standby power","suggestions":[{"type":"timing_optimization","current":"Triggers when power > 50W for 5 minutes","suggested":"Change to trigger when power > 40W for 3 minutes to catch more savings opportunities","estimated_savings":"Additional 3.2% reduction","implementation":"Modify the automation trigger condition in configuration.yaml"},{"type":"device_grouping","current":"Controls 12 individual devices","suggested":"Group devices by power consumption patterns and create separate automation for high-power devices","estimated_savings":"Additional 1.8% reduction with more precise control","implementation":"Create new device groups in groups.yaml and modify automation logic"},{"type":"sensor_optimization","current":"Uses single power sensor with 10-second polling","suggested":"Implement power trend analysis with 30-second polling for more accurate detection","estimated_savings":"Additional 2.1% reduction with better pattern matching","implementation":"Add template sensor in configuration.yaml for power trend analysis"}]},"summary":"All validation checks passed with minor best practice recommendations. 16 of 18 automations are active and functioning properly. Backup created successfully with 47 files included. Three optimization suggestions generated for Energy Saver Mode with potential for 7.1% additional energy savings. Recommend implementing suggestions incrementally and monitoring impact over 7 days."}Real estate management platform for Mexico
AI assistant built for thoughtful, nuanced conversation
AI software for autonomous drone operations
No-code SaaS integration and data sync
Fast and reliable CNC machining services.
Enterprise RPA platform with AI-powered process automation
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan