instances/xiaodazi/skills/home-assistant/SKILL.md
Control smart home devices via Home Assistant. Lights, climate, locks, sensors, scenes, automations — all through natural language.
npx skillsauth add malue-ai/dazee-small home-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 Home Assistant 控制家中所有智能设备:灯光、空调、窗帘、门锁、传感器、场景、自动化等。支持 2600+ 品牌,一句话操控全屋。
pomodoro:番茄钟结束时调亮灯光提醒休息export HOMEASSISTANT_TOKEN="your-token"export HOMEASSISTANT_URL="http://homeassistant.local:8123"Home Assistant 2025.4.4+ 内置 MCP Server 支持,可直接通过 MCP 协议通信。
Home Assistant 提供 MCP Server 集成,通过 MCP 协议直接操作:
工具: call_service
参数:
domain: "light"
service: "turn_on"
target:
entity_id: "light.living_room"
data:
brightness_pct: 50
color_temp_kelvin: 3000
工具: get_state
参数:
entity_id: "sensor.living_room_temperature"
工具: call_service
参数:
domain: "scene"
service: "turn_on"
target:
entity_id: "scene.good_night"
# 获取所有设备状态
curl -s "$HOMEASSISTANT_URL/api/states" \
-H "Authorization: Bearer $HOMEASSISTANT_TOKEN"
# 控制灯光
curl -s -X POST "$HOMEASSISTANT_URL/api/services/light/turn_on" \
-H "Authorization: Bearer $HOMEASSISTANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entity_id": "light.living_room", "brightness_pct": 80}'
# 设置空调温度
curl -s -X POST "$HOMEASSISTANT_URL/api/services/climate/set_temperature" \
-H "Authorization: Bearer $HOMEASSISTANT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entity_id": "climate.bedroom", "temperature": 24}'
# 查询传感器
curl -s "$HOMEASSISTANT_URL/api/states/sensor.outdoor_temperature" \
-H "Authorization: Bearer $HOMEASSISTANT_TOKEN"
灯光:
开灯/关灯: light.turn_on / light.turn_off
调亮度: brightness_pct (0-100)
调色温: color_temp_kelvin (2700暖光-6500冷光)
调颜色: rgb_color [R, G, B]
空调/暖通:
设温度: climate.set_temperature → temperature
设模式: climate.set_hvac_mode → hvac_mode (heat/cool/auto/off)
设风速: climate.set_fan_mode → fan_mode (low/medium/high/auto)
窗帘:
开/关: cover.open_cover / cover.close_cover
设位置: cover.set_cover_position → position (0关-100全开)
门锁:
锁门: lock.lock
开锁: lock.unlock (需确认!调用 hitl 工具确认)
场景:
触发: scene.turn_on → entity_id: scene.xxx
hitl 工具获得用户确认| 组合 | 效果 | |------|------| | home-assistant + pomodoro | 番茄钟开始→调暗灯光营造专注环境;结束→调亮提醒休息 | | home-assistant + 每日简报类 Skill(如已启用) | 早间简报时自动开灯、调温、播报天气 | | home-assistant + reminder | 提醒事项触发时闪烁灯光辅助提醒 | | home-assistant + scheduled-tasks | 定时自动化:每晚 11 点关灯锁门 |
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.