ha-automation
БесплатноБез исполняемых скриптовНе проверенCreate and debug Home Assistant automations, scripts, blueprints, and Jinja2 templates. Use when working with triggers, conditions, actions, automation YAML…
Об этом скилле
Home Assistant Automation Expert
Master Home Assistant automations, scripts, blueprints, and Jinja2 templating with confidence.
Before You Start
This skill prevents common automation mistakes including:
- Incorrect trigger syntax - Using deprecated formats or invalid entity IDs
- Missing condition operators - Forgetting
and/or/notconjunctions - Jinja2 template errors - Undefined variables or incorrect filter usage
- Blueprint parameterization issues - Missing
!inputsubstitutions or misaligned selectors
Quick Reference: Automation Structure
Basic Automation Format
automation: !include automations.yaml
Single Automation File
- alias: "My Automation"
description: "What this automation does"
trigger: ...
condition: ...
action: ...
mode: single
Triggers Quick Reference
State Trigger
trigger:
platform: state
entity_id: light.bedroom
from: "off"
to: "on"
for:
minutes: 5
Numeric State Trigger
trigger:
platform: numeric_state
entity_id: sensor.temperature
above: 25
below: 30
Time Trigger
trigger:
platform: time
at: "10:30:00"
Time Pattern Trigger
trigger:
platform: time_pattern
hours: "*/2" # Every 2 hours
minutes: 0
Device Trigger
trigger:
platform: device
device_id: abc123...
domain: light
type: turned_on
Event Trigger
trigger:
platform: event
event_type: call_service
event_data:
domain: light
MQTT Trigger
trigger:
platform: mqtt
topic: home/front_door/status
payload: "opened"
Webhook Trigger
trigger:
platform: webhook
webhook_id: my_webhook_id
Sun Trigger
trigger:
platform: sun
event: sunrise
offset: "-00:30:00" # 30 min before sunrise
Zone Trigger
trigger:
platform: zone
entity_id: device_tracker.john
zone: zone.home
event: enter
Template Trigger
trigger:
platform: template
value_template: "{{ state_attr('light.bedroom', 'brightness') > 200 }}"
Conditions Quick Reference
State Condition
condition:
- condition: state
entity_id: light.bedroom
state: "on"
Numeric State Condition
condition:
- condition: numeric_state
entity_id: sensor.temperature
above: 20
below: 25
Time Condition
condition:
- condition: time
after: "08:00:00"
before: "20:00:00"
weekday:
- mon
- tue
- wed
Sun Condition
condition:
- condition: sun
after: sunrise
before: sunset
Template Condition
condition:
- condition: template
value_template: "{{ states('light.bedroom') == 'on' }}"
Combining Conditions
condition:
- condition: and
conditions:
- condition: state
entity_id: light.bedroom
state: "on"
- condition: numeric_state
entity_id: sensor.temperature
above: 20
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.motion
state: "on"
- condition: state
entity_id: light.bedroom
state: "on"
Actions Quick Reference
Call Service Action
action:
- service: light.turn_on
target:
entity_id: light.bedroom
data:
brightness: 255
color_temp: 366
Call Service (Multiple Targets)
action:
- service: light.turn_on
target:
entity_id:
- light.bedroom
- light.living_room
area_id: downstairs
Choose (If/Then/Else)
action:
- choose:
- conditions:
- condition: state
entity_id: light.bedroom
state: "on"
sequence:
- service: light.turn_off
target:
entity_id: light.bedroom
- conditions:
- condition: state
entity_id: light.bedroom
state: "off"
sequence:
- service: light.turn_on
target:
entity_id: light.bedroom
default:
- service: notification.send
data:
message: "Unable to determine light state"
Repeat (Loop)
action:
- repeat:
count: 3
sequence:
- service: light.toggle
target:
entity_id: light.bedroom
- delay:
seconds: 1
Delay
action:
- delay:
minutes: 5
Wait for Trigger
action:
- wait_for_trigger:
platform: state
entity_id: binary_sensor.motion
to: "off"
timeout:
minutes: 30
- service: light.turn_off
target:
entity_id: light.bedroom
Parallel Actions
action:
- parallel:
- service: light.turn_off
target:
entity_id: light.bedroom
- service: switch.turn_off
target:
entity_id: swi
Установить ha-automation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ha-automation?
Create and debug Home Assistant automations, scripts, blueprints, and Jinja2 templates. Use when working with triggers, conditions, actions, automation YAML, scripts, blueprints, or template expressions. Activates on keywords: automation, trigger, condition, action, blueprint, script, template, jinja2.
Как установить скилл ha-automation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ha-automation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic