← 返回
未分类 Key 中文

Home Assistant Integration

Control and query Home Assistant via natural language. Covers lights, switches, climate, temperature sensors, cameras, automations, energy monitoring, EV cha...
通过自然语言控制和查询 Home Assistant,涵盖灯光、开关、气候、温度传感器、摄像头、自动化、能源监控以及电动车充电等功能。
nj070574-gif nj070574-gif 来源
未分类 clawhub v2.1.0 1 版本 99841.8 Key: 需要
★ 1
Stars
📥 611
下载
💾 1
安装
1
版本
#automation#cameras#climate#energy#heating#home-assistant#iot#latest#lights#smart-home#telegram

概述

Home Assistant Integration v2.1 — OpenClaw Skill

Control and query your Home Assistant smart home in plain English through

Telegram or any OpenClaw channel.

Setup

1. Create a Home Assistant Long-Lived Token

In Home Assistant: Profile (bottom-left) → SecurityLong-Lived Access TokensCreate Token

Copy the token immediately — it is only shown once.

2. Add credentials to openclaw.json

`json

{

"env": {

"HOME_ASSISTANT_URL": "http://homeassistant.local:8123",

"HOME_ASSISTANT_TOKEN": "your-long-lived-token-here"

}

}

`

Using HTTPS with a self-signed certificate? Also add:

`json

"HOME_ASSISTANT_SSL_VERIFY": "false"

`

3. Restart OpenClaw

`ash

sudo systemctl restart openclaw

`

4. Test

Send your bot: home summary

Security Notes

  • Connects only to your configured HOME_ASSISTANT_URL — no third-party calls
  • Create a dedicated HA user with only the permissions your agent needs
  • Store credentials in openclaw.json with restricted permissions (chmod 600)
  • Prefer HOME_ASSISTANT_CA_CERT over HOME_ASSISTANT_SSL_VERIFY=false for HTTPS

What You Can Ask

PhraseWhat happens
------
home summaryTemperatures, lights on, heating status, active switches
what is the temperature?All temperature sensors
urn off the living room lightsCalls light.turn_off
set the heating to 21 degreesCalls climate.set_temperature
is the EV charger on?Reads switch state
show me the front door cameraReturns snapshot URL
list all automationsShows enabled/disabled automations
is anyone home?Reads presence/person entity states
what is my energy consumption?All power/energy sensors
urn on lights at 80% brightnessService call with brightness attribute

Available Operations

The skill provides 15 Python snippets executed via the OpenClaw exec tool:

  • _load_config — loads credentials from environment (always runs first)
  • check_api — tests HA connectivity
  • ha_summary_for_telegram — full home summary
  • get_temperature_sensors — all temperature sensors
  • get_lights — lights with brightness levels
  • get_switches — all switches with state
  • get_climate — thermostat/climate status
  • call_service — control any HA device/service
  • search_entities — find entities by keyword
  • get_cameras — camera list with snapshot URLs
  • camera_snapshot — download camera image
  • get_automations — all automations with last-triggered
  • rigger_automation — fire a specific automation
  • get_energy — energy and power sensors
  • send_notification — send via HA notify service

Skill File

The full skill implementation is in home_assistant.json in this directory.

It contains all 15 snippets as Python code that the agent executes via

the Home Assistant REST API (/api/states, /api/services/*).

Troubleshooting

HOME_ASSISTANT_TOKEN not configured

Check the HOME_ASSISTANT_TOKEN in your openclaw.json env block and restart OpenClaw.

401 Unauthorized

Token expired. Regenerate: HA → Profile → Security → Long-Lived Access Tokens.

SSL certificate verify failed

Add "HOME_ASSISTANT_SSL_VERIFY": "false" to your openclaw.json env block.

Connection refused

Check HOME_ASSISTANT_URL is correct and HA is running.

版本历史

共 1 个版本

  • v2.1.0 当前
    2026-05-03 06:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,398 📥 323,041
it-ops-security

Magento 2 Admin

nj070574-gif
Complete Magento 2 store administration via SSH key auth, REST API, GraphQL, and direct DB access. For server owners on
★ 1 📥 547
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,473 📥 535,652