Xpersona
H

Home Assistant Integration

CLAWHUB · Unverified

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.

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1747h3dssx5wbb4xxpn85vtsd83gnax:home-assistant-skill
  1. Install using `clawhub skill install s1747h3dssx5wbb4xxpn85vtsd83gnax:home-assistant-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/nj070574-gif/home-assistant-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nj070574-gif-home-assistant-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,024 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: home-assistant-skill
version: "2.5.1"
description: >
  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.
author: openclaw-community
license: MIT
tags:
  - home-assistant
  - smart-home
  - lights
  - climate
  - cameras
  - automation
  - energy
  - iot
  - heating
  - telegram
  - latest

requires:
  env:
    - name: HOME_ASSISTANT_URL
      description: Your Home Assistant URL (e.g. http://homeassistant.local:8123)
    - name: HOME_ASSISTANT_TOKEN
      description: Long-lived access token (HA Profile > Security > Long-Lived Access Tokens)
  optional_env:
    - name: HOME_ASSISTANT_CA_CERT
      description: Path to a CA certificate file so HTTPS with a self-signed cert is verified (the supported way to use a self-signed cert).
    - name: HOME_ASSISTANT_ALLOW_LOCKS
      description: Set to 'true' to allow control of lock / alarm_control_panel entities. Blocked in code by default.
    - name: HOME_ASSISTANT_ALLOW_HTTP
      description: Set to 'true' to allow the token over plain HTTP to a non-loopback host (trusted LAN only). Refused by default; loopback is always allowed.
  python_packages:
    - requests
  binaries:
    - python3

security:
  scope: owner-operated
  risk_level: medium
  risk_acknowledged: true
  auth_method: long-lived-bearer-token-user-supplied
  tls_verification: always-on              # verify=True; self-signed certs via HOME_ASSISTANT_CA_CERT (no disable path)
  cleartext_http: refused-to-non-loopback  # plain HTTP to a non-loopback host needs HOME_ASSISTANT_ALLOW_HTTP=true
  credential_handling: user-supplied-only  # env / openclaw.json / secrets file; never in the skill, never echoed
  network_access: user-own-home-assistant-only
  destructive_ops: code-gated              # ha_confirm() gates state changes + camera snapshots; lock/alarm blocked unless HOME_ASSISTANT_ALLOW_LOCKS=true
  note: >
    Connects only to the Home Assistant instance you configure via
    HOME_ASSISTANT_URL, using a token you supply. No data is sent to third
    parties by this skill. (Home Assistant itself may proxy external camera
    feeds you configured inside HA — that is HA's configuration, not this
    skill.) A long-lived token grants access equivalent to your HA user; use a
    dedicated, least-privilege HA user and rotate the token periodically.

prompt_injection_mitigation: >
  HOME_ASSISTANT_URL and HOME_ASSISTANT_TOKEN come only from the OpenClaw
  environment, never from chat. Entity states and sensor/camera data returned
  by Home As

_meta.json

{
  "ownerId": "kn75wmg9n12pjn92x60r99d04983gkgd",
  "slug": "home-assistant-skill",
  "version": "2.5.1",
  "publishedAt": 1791303145322
}

skill-card.md

## Description:

Connects an OpenClaw agent to your Home Assistant instance to answer smart-home questions and control devices with confirmation.

This skill is ready for commercial/non-commercial use.

## Publisher:

[nj070574-gif](https://clawhub.ai/user/nj070574-gif)

### License/Terms of Use:

MIT-0

## Use Case:

Home Assistant owners use this skill through OpenClaw to check device status, temperatures, energy use, presence, and cameras, and to request confirmed device or automation actions.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Device and automation actions can change the physical state of a home.

Mitigation: Require explicit confirmation for actions; leave lock and alarm control disabled unless needed.

Risk: Home status, presence, and camera data can expose private activity.

Mitigation: Restrict who can message connected OpenClaw channels and treat snapshots and URLs as private.

Risk: A long-lived token or unencrypted connection can expose control of the Home Assistant instance.

Mitigation: Use a dedicated low-privilege user and HTTPS; leave the cleartext HTTP override unset unless knowingly accepting LAN token exposure.

## Reference(s):

- [Home Assistant Integration on ClawHub](https://clawhub.ai/nj070574-gif/skills/home-assistant-skill)

## Skill Output:

**Output Type(s):** [Text, Markdown, Guidance]

**Output Format:** [Plain text or Markdown]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May include device status, home summaries, camera snapshot URLs, and confirmation prompts.]

## Skill Version(s):

2.5.1 (source: frontmatter, ClawHub release)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

home_assistant.json

{
  "name": "home_assistant",
  "version": "2.5.1",
  "description": "Home Assistant REST API integration for OpenClaw agents. Query and control your smart home via natural language through Telegram or any OpenClaw channel. Covers: lights, switches, climate/heating, temperature sensors, cameras, automations, energy monitoring, EV chargers, presence detection, door/lock sensors, and home summaries. Credentials are supplied by you (environment variable, openclaw.json, or a secrets file) and are never stored in the skill files.",
  "notes": "SETUP REQUIRED. See README for full instructions.\nToken is read automatically from (in priority order):\n  1. HOME_ASSISTANT_TOKEN environment variable\n  2. openclaw.json env block: HOME_ASSISTANT_URL + HOME_ASSISTANT_TOKEN\n  3. secrets file: ~/.openclaw/workspace/.secrets/home_assistant.token (line 1 = token, optional line 2 = url)\nTransport: TLS verification is always on; for a self-signed cert set HOME_ASSISTANT_CA_CERT. Plain HTTP to a non-loopback host is refused unless HOME_ASSISTANT_ALLOW_HTTP=true.\nGating: every snippet that calls a service - call_service, trigger_automation, camera_snapshot and send_notification - goes through the in-code ha_confirm gate (dry-run unless an explicit CONFIRM token); lock/alarm_control_panel are blocked unless HOME_ASSISTANT_ALLOW_LOCKS=true. ha_get/ha_post are the low-level primitives these gated helpers build on and are not themselves gated.\nAll snippets require _load_config to be executed first in the same script.",
  "setup": {
    "step1": "In Home Assistant: Profile (bottom-left) -> Security -> Long-Lived Access Tokens -> Create Token",
    "step2": "Add to ~/.openclaw/openclaw.json env block: HOME_ASSISTANT_URL and HOME_ASSISTANT_TOKEN",
    "step3": "If using HTTPS with a self-signed cert, set HOME_ASSISTANT_CA_CERT to your CA cert path (TLS stays verified).",
    "step4": "Restart OpenClaw so it picks up the new env (e.g. systemctl --user restart openclaw).",
    "step5": "Test: ask your bot 'home summary' or 'what is the temperature?'"
  },
  "snippets": {
    "_load_config": "import json, requests, os, sys\nfrom pathlib import Path\n\ndef _load_ha_config():\n    # Priority 1: system environment variables\n    url   = os.environ.get(\"HOME_ASSISTANT_URL\", \"\").strip()\n    token = os.environ.get(\"HOME_ASSISTANT_TOKEN\", \"\").strip()\n    # Priority 2: openclaw.json env block\n    if not token:\n        oc = Path.home() / \".openclaw/openclaw.json\"\n        if oc.exists():\n            try:\n                env = json.loads(oc.read_text()).get(\"env\", {})\n                url   = url   or env.get(\"HOME_ASSISTANT_URL\",   \"\").strip()\n                token = token or env.get(\"HOME_ASSISTANT_TOKEN\", \"\").strip()\n            except Exception: pass\n    # Priority 3: secrets file (line1 = token, optional line2 = url)\n    if not token:\n        try:\n            sec = Path.home() / \".openclaw/workspace/.secrets/home_assistant.token\"\n

Sponsored

Ads related to Home Assistant Integration and adjacent AI workflows.