运行时依赖
安装命令
点击复制技能文档
openclaw-homeassistant OpenClaw 插件用于 Home Assistant 集成。从聊天中控制整个智能家居。 工具(34) 核心 ha_status - HA 配置、版本、位置 ha_list_entities - 列出实体(按域/状态过滤) ha_get_state - 获取单个实体状态 + 属性 ha_search_entities - 按名称模式搜索实体 ha_list_services - 按域可用的服务 灯光 ha_light_on - 打开(亮度、色温、RGB、过渡) ha_light_off / ha_light_toggle ha_light_list - 所有灯光及其当前状态 开关 ha_switch_on / ha_switch_off / ha_switch_toggle 气候 ha_climate_set_temp - 设置温度 + HVAC 模式 ha_climate_set_mode - 加热/制冷/自动/关闭 ha_climate_set_preset - 家/外出/节能/增强 ha_climate_list - 所有气候实体及其温度 媒体播放器 ha_media_play / ha_media_pause / ha_media_stop ha_media_volume - 设置音量(0.0-1.0) ha_media_play_media - 播放特定媒体 遮盖物 ha_cover_open / ha_cover_close ha_cover_position - 设置位置(0-100) 场景和自动化 ha_scene_activate / ha_script_run / ha_automation_trigger 传感器和历史记录 ha_sensor_list - 所有传感器及其值 ha_history - 实体随时间的历史记录 ha_logbook - 最近的日志条目 通用 ha_call_service - 任意服务调用 ha_fire_event - 触发自定义事件 ha_render_template - Jinja2 模板 通知 ha_notify - 发送通知 配置 { "url": "http://your-ha-instance:8123", "token": "YOUR_LONG_LIVED_ACCESS_TOKEN", "allowedDomains": ["light", "switch", "climate"], "readOnly": false } 安全 readOnly:阻止所有写操作 allowedDomains:限制到特定设备域 在所有调用中强制执行实体 ID 验证