Home Assistant Automation — скилл для Claude Code
Скилл помогает управлять устройствами Home Assistant, собирать автоматизации и сцены. Пригодится для сценариев света, климата, безопасности и мониторинга энергии.
npx skills add claude-office-skills/skills --skill home-assistant-automation -a claude-code
npx skills add claude-office-skills/skills --skill home-assistant -a claude-codeЧто делает Home Assistant Automation
Home Assistant Automation описывает команды для устройств и YAML-сценарии Home Assistant. Через него можно включать свет, менять температуру, управлять медиаплеером и замками, отслеживать состояния датчиков и получать журналы событий.
Внутри есть шаблоны автоматизаций с триггерами, условиями, действиями и задержками. Скилл также работает со сценами вроде movie_night и good_night, голосовыми интентами, контролем энергии и охранными сценариями с камерой и уведомлениями.
Для работы нужен подключённый MCP-сервер homeassistant-mcp с инструментами ha_service_call, ha_state_get, ha_automation и ha_scene. Это повод проверить MCP-связку до настройки сценариев: без неё команды управления устройствами некуда отправлять.
Какие задачи решает
- включить свет по времени или состоянию датчика
- настроить утренний и ночной сценарии дома
- переключить климат в режим отсутствия
- создать сцену для просмотра фильмов
- отправить снимок камеры при движении
Примеры запросов агенту
- Настрой автоматизацию
morning_routine: в06:30:00включайlight.bedroom, выставляй температуру и запускайnews_briefing. - Создай сцену
good_night, которая выключаетlight.all_lights, запираетlock.all_locksи включает ночную охрану. - Сделай сценарий: при
binary_sensor.motion_frontвключай камеруcamera.front_doorи отправляй уведомление с изображением.
Как установить Home Assistant Automation
1Через Skills CLI (Vercel)
npx skills add claude-office-skills/skills --skill home-assistant-automation -a claude-codenpx skills add claude-office-skills/skills --skill home-assistant -a claude-code2Вручную: положить файлы
~/.claude/skills/home-assistant/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/home-assistant/
1Через Skills CLI (Vercel)
npx skills add claude-office-skills/skills --skill home-assistant -a codex2Вручную: положить файлы
.agents/skills/home-assistant/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add claude-office-skills/skills --skill home-assistant -a cursor2Вручную: положить файлы
.cursor/skills/home-assistant/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install claude-office-skills/skills home-assistant2Вручную: положить файлы
.github/skills/home-assistant/SKILL.md1Через Skills CLI (Vercel)
npx skills add claude-office-skills/skills --skill home-assistant -a gemini-cli2Командой платформы
gemini skills install https://github.com/claude-office-skills/skills --path home-assistantВручную: положить файлы
.devin/skills/home-assistant/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add claude-office-skills/skills --skill home-assistant -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о Home Assistant Automation
Как установить Home Assistant Automation в Claude Code?
Выполните npx skills add claude-office-skills/skills --skill home-assistant-automation -a claude-code, затем npx skills add claude-office-skills/skills --skill home-assistant -a claude-code. После установки откройте ~/.claude/skills/home-assistant/SKILL.md.
Что делает Home Assistant Automation?
Скилл помогает задавать команды для устройств Home Assistant, создавать автоматизации и сцены, отслеживать состояния и настраивать голосовые интенты.
Что нужно для работы Home Assistant Automation?
Нужен MCP-сервер homeassistant-mcp с инструментами ha_service_call, ha_state_get, ha_automation и ha_scene.
Исходный текст
SKILL.md · MIT
---
name: Home Assistant Automation
description: Automate smart home devices and create intelligent home automation workflows with Home Assistant
version: 1.0.0
author: Claude Office Skills
category: smart-home
tags:
- home-assistant
- iot
- smart-home
- automation
- devices
department: operations
models:
- claude-3-opus
- claude-3-sonnet
- gpt-4
mcp:
server: homeassistant-mcp
tools:
- ha_service_call
- ha_state_get
- ha_automation
- ha_scene
capabilities:
- Device control
- Automation creation
- Scene management
- State monitoring
input:
- Device commands
- Automation triggers
- Scene configurations
- Sensor data
output:
- Device states
- Automation status
- Scene activations
- Event logs
languages:
- en
related_skills:
- calendar-automation
- slack-workflows
---
# Home Assistant Automation
Automate smart home devices and create intelligent automation workflows.
## Core Capabilities
### Device Control
```yaml
device_commands:
lights:
- turn_on:
entity_id: light.living_room
brightness_pct: 80
color_temp: 350
- turn_off:
entity_id: light.all_lights
climate:
- set_temperature:
entity_id: climate.main_thermostat
temperature: 72
hvac_mode: heat
media:
- media_play_pause:
entity_id: media_player.living_room_tv
- volume_set:
entity_id: media_player.sonos
volume_level: 0.5
```
### Automation Templates
```yaml
automations:
morning_routine:
trigger:
- platform: time
at: "06:30:00"
- platform: state
entity_id: binary_sensor.alarm
to: "off"
condition:
- condition: state
entity_id: person.owner
state: "home"
action:
- service: light.turn_on
target:
entity_id: light.bedroom
data:
brightness_pct: 30
transition: 300
- service: climate.set_temperature
data:
temperature: 72
- delay: "00:05:00"
- service: media_player.play_media
data:
media_content_type: music
media_content_id: "news_briefing"
away_mode:
trigger:
platform: state
entity_id: group.family
to: "not_home"
for: "00:10:00"
action:
- service: climate.set_preset_mode
data:
preset_mode: away
- service: light.turn_off
target:
entity_id: all
- service: lock.lock
target:
entity_id: lock.front_door
```
### Scenes
```yaml
scenes:
movie_night:
entities:
light.living_room:
state: on
brightness: 20
color_temp: 500
light.tv_backlight:
state: on
rgb_color: [0, 0, 255]
media_player.soundbar:
state: on
source: "TV"
cover.blinds:
state: closed
good_night:
entities:
light.all_lights:
state: off
lock.all_locks:
state: locked
alarm_control_panel.home:
state: armed_night
climate.thermostat:
temperature: 68
```
### Voice Commands
```yaml
voice_intents:
- intent: "Turn on the lights"
action: light.turn_on
entity: light.all_lights
- intent: "Set temperature to {temp}"
action: climate.set_temperature
entity: climate.thermostat
data:
temperature: "{{ temp }}"
- intent: "I'm leaving"
action: script.away_mode
```
## Integration Examples
### Energy Monitoring
```yaml
energy_dashboard:
sensors:
- sensor.electricity_usage
- sensor.solar_production
- sensor.battery_level
automations:
- name: "Off-peak charging"
trigger:
platform: time
at: "00:00:00"
action:
service: switch.turn_on
entity_id: switch.ev_charger
```
### Security System
```yaml
security:
motion_detection:
trigger:
platform: state
entity_id: binary_sensor.motion_front
to: "on"
condition:
- condition: state
entity_id: alarm_control_panel.home
state: armed_away
action:
- service: camera.snapshot
entity_id: camera.front_door
- service: notify.mobile_app
data:
message: "Motion detected at front door"
data:
image: "/local/snapshots/front_door.jpg"
```
## Best Practices
1. **Entity Naming**: Use consistent naming conventions
2. **Groups**: Organize devices logically
3. **Conditions**: Always add appropriate conditions
4. **Notifications**: Don't over-notify
5. **Testing**: Test automations thoroughly
6. **Backup**: Regular configuration backups
© Claude Office Skills · MIT · claude-office-skills/skills