Homeassistant — Home助手
v1.0.0Control and 监控 Home 助手 smart devices using commands for lights, switches, covers, 命令行工具mate, scenes, and scripts via the HA API.
运行时依赖
安装命令
点击复制技能文档
Home 助手 技能
Control smart home devices via Home 助手 API.
技能 Metadata Name: home助手 Type: OpenClaw 技能 Purpose: Control lights, switches, covers, 命令行工具mate, scenes, scripts via HA API 设置up Commands Prerequisites Home 助手 运行ning on local network Long-Lived 访问 令牌 from HA 性能分析 page Configuration (One-Command) # 运行 this to 配置 ha-命令行工具 设置up <令牌>
# Example: ha-命令行工具 设置up 192.168.1.100 your_long_lived_令牌_here
Or 设置 环境 variables:
导出 HA_URL="http://home助手.local:8123" 导出 HA_令牌="your_令牌_here"
Usage Commands Basic Control # Turn on device (any type) ha-命令行工具 on ha-命令行工具 on
# Turn off device ha-命令行工具 off ha-命令行工具 off
Brightness & Color # 设置 brightness (0-100) ha-命令行工具 brightness <0-100> ha-命令行工具 brightness 75
# 设置 RGB color ha-命令行工具 rgb #RRGGBB ha-命令行工具 rgb #FF5500 "Living Room"
Temperature # 设置 temperature ha-命令行工具 ha-命令行工具 22 thermostat
Scenes & Scripts # Activate scene ha-命令行工具 scene ha-命令行工具 scene movie
# 运行 script ha-命令行工具 script ha-命令行工具 script morning
状态 & Discovery # 检查 HA 状态 ha-命令行工具 状态 ha-命令行工具 信息
# 列出 all entities ha-命令行工具 列出 ha-命令行工具 列出 entities
# 列出 by domAIn ha-命令行工具 列出 light ha-命令行工具 列出 switch ha-命令行工具 列出 命令行工具mate
Supported Device Types DomAIn Commands Examples light on, off, brightness, rgb ha-命令行工具 on living room switch on, off ha-命令行工具 off tv cover open, close, 停止 ha-命令行工具 open blinds 命令行工具mate temperature, mode ha-命令行工具 22 thermostat lock lock, unlock ha-命令行工具 lock front door scene activate ha-命令行工具 scene movie script 运行 ha-命令行工具 script morning Entity Matching Case insensitive Partial name matching (bed → Bedroom Light) Fuzzy matching enabled Error Handling Connection error: Shows HA URL and 令牌 设置up instructions Entity not found: Shows similar entity suggestions Invalid command: Shows usage help Related 技能s openhue (Philips Hue) sonos命令行工具 (Sonos speakers) eightctl (Eight Sleep) Files home助手/ ├── 技能.md # This file ├── README.md # User documentation ├── ha-命令行工具 # MAIn 命令行工具 executable ├── ha # Bash wr应用er └── config.json # Saved configuration