Use when user requests Home Assistant YAML automations, blueprints, scripts, or config. MANDATORY: First response must be clarifying questions, NEVER code. NOT for: Node-RED flows (use node-red skill), device firmware (use esphome skill).
A comprehensive Claude Code skill for creating Home Assistant YAML automations, scripts, blueprints, templates, and dashboard configurations.
When to use this skill: Use when you want YAML-based automations (automations.yaml, blueprints). For visual flows, use
node-red. For device firmware, useesphome. For Python custom components, useha-integration.
home-assistant/
├── SKILL.md # Main skill definition (700+ lines)
├── README.md # This file
├── INSTALLATION.md # Setup guide
├── USAGE-GUIDE.md # 70+ practical usage examples
├── PROMPT-IDEAS.md # 600+ categorized prompt ideas
├── LICENSE # MIT license
│
├── references/ # 48 reference files (~1.1 MB)
│ ├── automations.md # Complete automation reference
│ ├── scripts.md # Script patterns
│ ├── blueprints.md # Blueprint creation
│ ├── scenes.md # Scene configuration
│ ├── helpers.md # input_boolean, input_number, etc.
│ ├── configuration.md # configuration.yaml structure
│ ├── packages.md # Package organization
│ ├── jinja2-templates.md # Jinja2 templating guide
│ ├── template-sensors.md # Template sensors + advanced patterns
│ ├── conditions.md # Condition types
│ ├── actions.md # Action types
│ ├── triggers-advanced.md # Wait for State, Conversation triggers
│ ├── device-class-units.md # Device class to units mapping
│ ├── integrations-mqtt.md # MQTT setup
│ ├── integrations-esphome.md # ESPHome integration
│ ├── integrations-zigbee2mqtt.md # Zigbee2MQTT
│ ├── integrations-zwave.md # Z-Wave JS setup
│ ├── integrations-matter.md # Matter/Thread devices
│ ├── integrations-nodered.md # Node-RED connection
│ ├── integrations-common.md # Hue, Sonos, Google, Alexa
│ ├── integrations-ai-llm.md # Ollama, OpenAI, LLM automations
│ ├── integrations-bluetooth.md # Native BLE, ESPHome proxy, tracking
│ ├── integrations-frigate.md # Frigate NVR, object detection
│ ├── dashboards.md # Lovelace + modern cards (2024+)
│ ├── dashboard-cards.md # Card types, heading cards, features
│ ├── mushroom-cards.md # Mushroom cards comprehensive guide
│ ├── custom-components.md # HACS components
│ ├── custom-card-development.md # Creating custom cards
│ ├── voice-assistants.md # Assist, Whisper, Piper, LLM agents
│ ├── energy-ev-charging.md # EV charging, smart charging, solar
│ ├── advanced-patterns.md # State machines, multi-area
│ ├── backup-restore-migration.md # Backup & disaster recovery
│ ├── troubleshooting.md # Common issues + Trace API
│ ├── best-practices.md # Guidelines
│ ├── migration-guide.md # Version upgrades
│ ├── cookbook.md # Complete project examples
│ ├── integrations-zha.md # ZHA native Zigbee
│ ├── integrations-tuya.md # Tuya + Local Tuya (HACS)
│ ├── integrations-tasmota.md # Tasmota firmware
│ ├── integrations-shelly.md # Shelly devices
│ ├── integrations-media.md # Samsung, LG, Android TV
│ ├── integrations-cameras.md # Reolink, Synology, RTSP
│ ├── hacs-popular.md # Popular HACS integrations
│ ├── utility-meter.md # Energy tracking, tariffs
│ ├── system-monitor.md # System health
│ ├── statistics.md # Long-term statistics
│ └── weather-integration.md # Met.no, weather automations
│
└── assets/templates/ # 15 ready-to-use YAML templates
├── automation-motion-light.yaml
├── automation-presence-away.yaml
├── automation-climate-schedule.yaml
├── automation-state-machine.yaml
├── automation-error-handling.yaml # NEW: Retry/rollback patterns
├── automation-weather-based.yaml # NEW: Weather forecast automation
├── automation-energy-optimization.yaml # NEW: Grid-aware scheduling
├── script-notification-actionable.yaml
├── script-scene-controller.yaml
├── script-rate-limiting.yaml # NEW: Rate-limited actions
├── blueprint-motion-light.yaml
├── template-sensor-aggregation.yaml
├── dashboard-home-view.yaml
├── dashboard-energy-monitoring.yaml # NEW: Energy dashboard
└── package-room-template.yaml
See INSTALLATION.md for detailed setup instructions.
Quick install via Claude Code:
# In Claude Code, add the marketplace repository
/plugin marketplace add tonylofgren/aurora-smart-home
# Then install aurora (since v1.3, Home Assistant ships as part of the single aurora plugin)
/plugin install aurora@aurora-smart-home
See INSTALLATION.md for all installation options including scope selection.
Once installed, the skill activates automatically when you ask about Home Assistant topics:
"Create an automation that turns on the porch light at sunset"
"Help me write a script for a movie mode"
"How do I create a blueprint for motion lights?"
"Why isn't my automation triggering?"
See USAGE-GUIDE.md for 70+ detailed examples including debugging workflows.
# Generated by aurora@aurora-smart-home (home-assistant skill) v1.7.9
# https://github.com/tonylofgren/aurora-smart-home
automation:
- id: motion_light_hallway
alias: "Motion Light - Hallway"
description: "Turn on hallway light when motion detected"
mode: restart
triggers:
- trigger: state
entity_id: binary_sensor.hallway_motion
to: "on"
conditions:
- condition: numeric_state
entity_id: sensor.hallway_illuminance
below: 30
actions:
- action: light.turn_on
target:
entity_id: light.hallway
data:
brightness_pct: >
{% if now().hour >= 22 or now().hour < 6 %}
20
{% else %}
100
{% endif %}
transition: 1
- wait_for_trigger:
- trigger: state
entity_id: binary_sensor.hallway_motion
to: "off"
for:
minutes: 3
- action: light.turn_off
target:
entity_id: light.hallway
data:
transition: 2
# Generated by aurora@aurora-smart-home (home-assistant skill) v1.7.9
# https://github.com/tonylofgren/aurora-smart-home
template:
- sensor:
- name: "HVAC Running Time Today"
unit_of_measurement: "h"
state: >
{% set hvac = states('climate.living_room') %}
{% if hvac in ['heat', 'cool'] %}
{{ (states('sensor.hvac_runtime_minutes') | float(0) / 60) | round(1) }}
{% else %}
0
{% endif %}
icon: mdi:clock-outline
# Generated by aurora@aurora-smart-home (home-assistant skill) v1.7.9
# https://github.com/tonylofgren/aurora-smart-home
blueprint:
name: Motion-Activated Light with Timeout
description: Turn on a light when motion is detected, with configurable timeout
domain: automation
input:
motion_sensor:
name: Motion Sensor
selector:
entity:
domain: binary_sensor
device_class: motion
target_light:
name: Light
selector:
target:
entity:
domain: light
timeout:
name: Timeout
description: Time to wait after motion stops
default: 300
selector:
number:
min: 30
max: 3600
unit_of_measurement: seconds
triggers:
- trigger: state
entity_id: !input motion_sensor
to: "on"
actions:
- action: light.turn_on
target: !input target_light
- wait_for_trigger:
- trigger: state
entity_id: !input motion_sensor
to: "off"
for:
seconds: !input timeout
- action: light.turn_off
target: !input target_light
The skill activates when you want to:
This skill targets Home Assistant 2024.x through 2026.5 and follows current best practices. Deprecated syntax is noted where relevant, with migration guides included.
serial_proxy)Reminder: HA 2026.6 removes platform: template sensors. Migrate to the template: integration before that release.
Contributions are welcome! Please feel free to submit issues or pull requests.
MIT License - see LICENSE for details.
Created for use with Claude Code by Anthropic.
Note: This skill generates Home Assistant configurations based on your requirements. Always review generated code before applying to your production Home Assistant instance.
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer