Home Assistant Integration
БесплатноБез исполняемых скриптовНе проверенControl and query Home Assistant via natural language. Covers lights, switches, climate, temperature sensors, cameras, automations, energy monitoring, EV…
от nj070574-gif1 946 установок в других каталогахОб этом скилле
Home Assistant Integration v2.5 — OpenClaw Skill
Control and query your Home Assistant smart home in plain English through Telegram or any OpenClaw channel.
Consent, safety & privacy (read before enabling)
This skill controls physical devices and can retrieve private imagery from your home. Treat it accordingly:
- Every snippet that calls a service is gated in code, not just prose. The
call_service,trigger_automation,camera_snapshotandsend_notificationsnippets run throughha_confirm/ha_call_serviceand will not act without an explicit confirmation token;lock/alarm_control_panelare blocked unless you setHOME_ASSISTANT_ALLOW_LOCKS=true.ha_get/ha_postare the low-level primitives these helpers build on and are not themselves gated — use the gated snippets (not a rawha_post) for anything that calls a service. Read-only queries (summaries, sensor reads, listings) run without a gate. - Cameras are private.
get_cameras/camera_snapshotreturn real images and reveal occupancy patterns.camera_snapshotis behind the same confirmation gate; snapshots are written owner-only (0600). Treat snapshot URLs and saved files as sensitive. - Own-instance only. Point the skill only at a Home Assistant instance you own, with a token you control.
- Least-privilege token. Create a dedicated HA user with only the permissions your agent needs (avoid admin), store credentials
chmod 600, and rotate/revoke the long-lived token periodically or if transport was ever insecure. - Verify TLS. Use
https://. For a self-signed cert, setHOME_ASSISTANT_CA_CERTto your CA so TLS is still verified — there is no option to disable certificate checking. Plain HTTP to a non-loopback host is refused unless you setHOME_ASSISTANT_ALLOW_HTTP=true(trusted LAN only, token sent unencrypted); loopback (localhost/127.0.0.1/::1) is always allowed.
Setup
1. Create a Home Assistant Long-Lived Token
In Home Assistant: Profile (bottom-left) → Security → Long-Lived Access Tokens → Create Token
Copy the token immediately — it is only shown once.
2. Add credentials to openclaw.json
{
"env": {
"HOME_ASSISTANT_URL": "http://homeassistant.local:8123",
"HOME_ASSISTANT_TOKEN": "your-long-lived-token-here"
}
}
Using HTTPS with a self-signed certificate? Point at your CA cert so TLS is still verified:
"HOME_ASSISTANT_CA_CERT": "/path/to/your-ca.crt"
3. Restart OpenClaw
Restart OpenClaw so it picks up the new env (however your install runs it):
systemctl --user restart openclaw
4. Test
Send your bot: home summary
Security Notes
- Connects only to your configured HOME_ASSISTANT_URL — no third-party calls from this skill.
- Create a dedicated HA user with only the permissions your agent needs; rotate the token periodically.
- Store credentials in openclaw.json with restricted permissions (
chmod 600). - This skill controls PHYSICAL devices (lights, heating, locks, switches) and can change their real-world state — state changes are gated in code (
ha_confirm), and lock/alarm control is off unless you opt in withHOME_ASSISTANT_ALLOW_LOCKS=true. - Camera operations retrieve real images/snapshots from your home — gated by the same confirmation and written owner-only; treat snapshot URLs and saved files as private.
- TLS verification is always on. For a self-signed cert, set
HOME_ASSISTANT_CA_CERTto your CA so HTTPS still verifies — there is no disable-verification option. Plain HTTP to a non-loopback host is refused unlessHOME_ASSISTANT_ALLOW_HTTP=true(trusted LAN only).
What You Can Ask
| Phrase | What happens |
|---|---|
| home summary | Temperatures, lights on, heating status, active switches |
| what is the temperature? | All temperature sensors |
| turn off the living room lights | Calls light.turn_off (code-gated; confirm first) |
| set the heating to 21 degrees | Calls climate.set_temperature (code-gated; confirm first) |
| is the EV charger on? | Reads switch state |
| show me the front door camera | Returns snapshot URL (capture is code-gated) |
| list all automations | Shows enabled/disabled automations |
| is anyone home? | Reads presence/person entity states |
| what is my energy consumption? | All power/energy sensors |
| turn on lights at 80% brightness | Service call with brightness attribute (code-gated) |
Act on explicit Home Assistant requests like these. Do not treat incidental mentions of bare words ("light", "camera", "door", "temperature") in ordinary conversation as commands — confirm intent, and never fire a state-changing or camera action off an ambiguous phrase.
Available Operations
The skill provides 15 Python snippets executed via the OpenClaw exec tool:
_load_config— loads credentials, sets upha_get/ha_post, and defines theha_confirm/ha_call_servicesafety gate (always runs first)check_api
Установить Home Assistant Integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Home Assistant Integration?
Control and query Home Assistant via natural language. Covers lights, switches, climate, temperature sensors, cameras, automations, energy monitoring, EV chargers, presence detection, door sensors, and home summaries. Credentials are supplied by you (environment variable, openclaw.json, or a secrets file), never stored in the skill files. Acts only on explicit Home Assistant requests; every snippet that calls a service (call_service, trigger_automation, camera_snapshot, send_notification) is gated in code and confirmed first.
Как установить скилл Home Assistant Integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Home Assistant Integration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic