Overview
- Skill Key
- anotb/homeassistant-skill
- Author
- anotb
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/anotb/homeassistant-skill
- Latest Commit SHA
- a743d3f8f3b31801059b0e3cc528970ba0b9d51a
Control Home Assistant devices and automations via REST API. 25 entity domains including lights, climate, locks, presence, weather, calendars, notifications, scripts, and more. Use when the user asks about their smart home, devices, or automations.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 homeassistant-skill 技能。 若已安装,则直接安装 homeassistant-skill 技能。
# Home Assistant Skill
Control smart home devices via the Home Assistant REST API.
## Setup
Set environment variables:
- `HA_URL` — Your Home Assistant URL (e.g., `http://10.0.0.10:8123`)
- `HA_TOKEN` — Long-lived access token (create in HA → Profile → Long-Lived Access Tokens)
## Safety Rules
**Always confirm with the user before performing these actions:**
- **Locks** — locking or unlocking any lock
- **Alarm panels** — arming or disarming
- **Garage doors** — opening or closing (`cover.*` with `device_class: garage`)
- **Security automations** — disabling automations related to security or safety
- **Covers** — opening or closing covers that control physical access (gates, barriers)
Never act on security-sensitive devices without explicit user confirmation.
## Entity Discovery
### List all entities
```bash
curl -s "$HA_URL/api/states" -H "Authorization: Bearer $HA_TOKEN" \
| jq -r '.[].entity_id' | sort
```
### List entities by domain
```bash
# Switches
curl -s "$HA_URL/api/states" -H "Authorization: Bearer $HA_TOKEN" \
| jq -r '.[] | select(.entity_id | startswith("switch.")) | "\(.entity_id): \(.state)"'
# Lights
curl -s "$HA_URL/api/states" -H "Authorization: Bearer $HA_TOKEN" \
| jq -r '.[] | select(.entity_id | startswith("light.")) | "\(.entity_id): \(.state)"'
# Sensors
curl -s "$HA_URL/api/states" -H "Authorization: Bearer $HA_TOKEN" \
| jq -r '.[] | select(.entity_id | startswith("sensor.")) | "\(.entity_id): \(.state) \(.attributes.unit_of_measurement // "")"'
```
Replace the domain prefix (`switch.`, `light.`, `sensor.`, etc.) to discover entities
in any domain.
### Get single entity state
```bash
curl -s "$HA_URL/api/states/ENTITY_ID" -H "Authorization: Bearer $HA_TOKEN"
```
### Area & Floor Discovery
Use the template API to query areas, floors, and labels.
```bash
# List all areas
curl -s -X POST "$HA_URL/api/template" \
-H "Authorization: Bearer $HA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"template": "{{...
# Home Assistant Skill An AI agent skill for controlling Home Assistant devices and automations through natural language. 25 entity domains including lights, climate, locks, presence, weather, calendars, notifications, and more — all via the HA REST API. Works with [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [OpenClaw](https://github.com/openclaw/openclaw), [Cursor](https://cursor.com), and any tool supporting the [SKILL.md](https://agentskills.io) standard. [](https://clawhub.ai/skills/homeassistant-skill) [](LICENSE) Part of [unsol.dev](https://unsol.dev) ## Prerequisites - Home Assistant instance with API access - `curl` and `jq` installed ## Installation ### Claude Code ```bash git clone https://github.com/anotb/homeassistant-skill.git ~/.claude/skills/homeassistant-skill ``` ### OpenClaw (via ClawdHub) ```bash clawhub install homeassistant-skill ``` ### Cursor / Other Clone to your agent's skill directory. ## Configuration 1. Create a long-lived access token in Home Assistant: Profile → Long-Lived Access Tokens 2. Set environment variables: ```bash export HA_URL=http://10.0.0.10:8123 export HA_TOKEN=your-long-lived-access-token ``` ## What You Can Do | Domain | Actions | |--------|---------| | Switches | Turn on, off, toggle | | Lights | On/off, brightness, color, color temp | | Scenes | Activate scenes | | Scripts | List, run, run with variables | | Automations | Trigger, enable, disable | | Climate | Set temperature, HVAC mode | | Covers | Open, close, set position (blinds, garage) | | Locks | Lock, unlock (with safety confirmation) | | Fans | On/off, speed | | Media players | Play, pause, volume | | Vacuum | Start, return to dock | | Alarm | Arm, disarm (with safety confirmation) | | Notifications | Send to mobile devices, list targets | | Person / Presence | Who is home, device loca...
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
cchacons
The job marketplace where bots hire bots. Post FREE or paid $WAGE jobs, with on-chain escrow, faucet rewards, referrals, judge staking, task inbox, smart matching, checkpoints, oversight, webhooks, onboarding, and human owner dashboard.
cchacons
The job marketplace where bots hire bots. Post FREE or paid $WAGE jobs, with on-chain escrow, faucet rewards, referrals, judge staking, task inbox, smart matching, checkpoints, oversight, webhooks, onboarding, and human owner dashboard.