# Send Home Assistant to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "home-assistant",
    "name": "Home Assistant",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/iAhmadZain/home-assistant",
    "canonicalUrl": "https://clawhub.ai/iAhmadZain/home-assistant",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/home-assistant",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=home-assistant",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api.md",
      "scripts/ha.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "home-assistant",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T04:17:25.641Z",
      "expiresAt": "2026-05-11T04:17:25.641Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=home-assistant",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=home-assistant",
        "contentDisposition": "attachment; filename=\"home-assistant-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "home-assistant"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/home-assistant"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/home-assistant",
    "downloadUrl": "https://openagent3.xyz/downloads/home-assistant",
    "agentUrl": "https://openagent3.xyz/skills/home-assistant/agent",
    "manifestUrl": "https://openagent3.xyz/skills/home-assistant/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/home-assistant/agent.md"
  }
}
```
## Documentation

### Home Assistant

Control your smart home via Home Assistant's REST API and webhooks.

### Option 1: Config File (Recommended)

Create ~/.config/home-assistant/config.json:

{
  "url": "https://your-ha-instance.duckdns.org",
  "token": "your-long-lived-access-token"
}

### Option 2: Environment Variables

export HA_URL="http://homeassistant.local:8123"
export HA_TOKEN="your-long-lived-access-token"

### Getting a Long-Lived Access Token

Open Home Assistant → Profile (bottom left)
Scroll to "Long-Lived Access Tokens"
Click "Create Token", name it (e.g., "Clawdbot")
Copy the token immediately (shown only once)

### List Entities

curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states" | jq '.[].entity_id'

### Get Entity State

curl -s -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/states/light.living_room"

### Control Devices

# Turn on
curl -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \\
  "$HA_URL/api/services/light/turn_on" -d '{"entity_id": "light.living_room"}'

# Turn off
curl -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \\
  "$HA_URL/api/services/light/turn_off" -d '{"entity_id": "light.living_room"}'

# Set brightness (0-255)
curl -X POST -H "Authorization: Bearer $HA_TOKEN" -H "Content-Type: application/json" \\
  "$HA_URL/api/services/light/turn_on" -d '{"entity_id": "light.living_room", "brightness": 128}'

### Run Scripts & Automations

# Trigger script
curl -X POST -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/services/script/turn_on" \\
  -H "Content-Type: application/json" -d '{"entity_id": "script.goodnight"}'

# Trigger automation
curl -X POST -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/services/automation/trigger" \\
  -H "Content-Type: application/json" -d '{"entity_id": "automation.motion_lights"}'

### Activate Scenes

curl -X POST -H "Authorization: Bearer $HA_TOKEN" "$HA_URL/api/services/scene/turn_on" \\
  -H "Content-Type: application/json" -d '{"entity_id": "scene.movie_night"}'

### Common Services

DomainServiceExample entity_idlightturn_on, turn_off, togglelight.kitchenswitchturn_on, turn_off, toggleswitch.fanclimateset_temperature, set_hvac_modeclimate.thermostatcoveropen_cover, close_cover, stop_covercover.garagemedia_playerplay_media, media_pause, volume_setmedia_player.tvsceneturn_onscene.relaxscriptturn_onscript.welcome_homeautomationtrigger, turn_on, turn_offautomation.sunrise

### Inbound Webhooks (HA → Clawdbot)

To receive events from Home Assistant automations:

### 1. Create HA Automation with Webhook Action

# In HA automation
action:
  - service: rest_command.notify_clawdbot
    data:
      event: motion_detected
      area: living_room

### 2. Define REST Command in HA

# configuration.yaml
rest_command:
  notify_clawdbot:
    url: "https://your-clawdbot-url/webhook/home-assistant"
    method: POST
    headers:
      Authorization: "Bearer {{ webhook_secret }}"
      Content-Type: "application/json"
    payload: '{"event": "{{ event }}", "area": "{{ area }}"}'

### 3. Handle in Clawdbot

Clawdbot receives the webhook and can notify you or take action based on the event.

### CLI Wrapper

The scripts/ha.sh CLI provides easy access to all HA functions:

# Test connection
ha.sh info

# List entities
ha.sh list all          # all entities
ha.sh list lights       # just lights
ha.sh list switch       # just switches

# Search entities
ha.sh search kitchen    # find entities by name

# Get/set state
ha.sh state light.living_room
ha.sh states light.living_room   # full details with attributes
ha.sh on light.living_room
ha.sh on light.living_room 200   # with brightness (0-255)
ha.sh off light.living_room
ha.sh toggle switch.fan

# Scenes & scripts
ha.sh scene movie_night
ha.sh script goodnight

# Climate
ha.sh climate climate.thermostat 22

# Call any service
ha.sh call light turn_on '{"entity_id":"light.room","brightness":200}'

### Troubleshooting

401 Unauthorized: Token expired or invalid. Generate a new one.
Connection refused: Check HA_URL, ensure HA is running and accessible.
Entity not found: List entities to find the correct entity_id.

### API Reference

For advanced usage, see references/api.md.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: iAhmadZain
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T04:17:25.641Z
- Expires at: 2026-05-11T04:17:25.641Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/home-assistant)
- [Send to Agent page](https://openagent3.xyz/skills/home-assistant/agent)
- [JSON manifest](https://openagent3.xyz/skills/home-assistant/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/home-assistant/agent.md)
- [Download page](https://openagent3.xyz/downloads/home-assistant)