Control and query your Home Assistant smart home in plain English through
Telegram or any OpenClaw channel.
In Home Assistant: Profile (bottom-left) → Security → Long-Lived Access Tokens → Create Token
Copy the token immediately — it is only shown once.
`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"
`
`ash
sudo systemctl restart openclaw
`
Send your bot: home summary
| Phrase | What happens |
|---|---|
| --- | --- |
| home summary | Temperatures, lights on, heating status, active switches |
| what is the temperature? | All temperature sensors |
| urn off the living room lights | Calls light.turn_off |
| set the heating to 21 degrees | Calls climate.set_temperature |
| is the EV charger on? | Reads switch state |
| show me the front door camera | Returns snapshot URL |
| list all automations | Shows 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% brightness | Service call with brightness attribute |
The skill provides 15 Python snippets executed via the OpenClaw exec tool:
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/*).
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 个版本