Agent skill · software engineering · sundial-org

home-assistant

Control Home Assistant smart home devices, run automations, and receive webhook events. Use when controlling lights, switches, climate, scenes, scripts, or any HA entity. Supports bidirectional communication via REST API (outbound) and webhooks (inbound triggers from HA automations).

Why this skill is useful

Adds executable scripts for controlling Home Assistant devices and managing automations that extend the AI's capabilities.

What it needs

Requires curl, jq installed locally. Requires home-assistant account access. About 2k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Home Assistant Control your smart home via Home Assistant's REST API and webhooks. Setup Option 1: Config File (Recommended) Create ~/.config/home-assistant/config.json: Option 2: Environment Variables Getting a Long-Lived Access Token 1. Open Home Assistant → Profile (bottom left) 2. Scroll to "Long-Lived Access Tokens" 3. Click "Create Token", name it (e.g., "Clawdbot") 4. Copy the token immediately (shown only once) Quick Reference List Entities Get Entity State Control Devices Run Scripts & Automations Activate Scenes Common Services Domain Service Example entityid -------- --------- ------------------- light turnon, turnoff, toggle light.kitchen switch turnon, turnoff, toggle switch.fan climate settemperature, sethvacmode climate.thermostat cover opencover, closecover, stopcover cover.garage mediaplayer playmedia, mediapause, volumeset mediaplayer.tv scene turnon scene.relax script turnon script.welcomehome automation trigger, turnon, turnoff automation.sunrise Inbound Webhooks (HA → Clawdbot) To receive events from Home Assistant automations: 1. Create HA Automation with Webhook Action 2. Define REST Command in HA 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: Troubleshooting 401 Unauthorized: Token expired or invalid. Generate a new one. Connection refused: Check HAURL, ensure HA is running and accessible. Entity not found: List entities to find the correct entityid. API Reference For advanced usage, see references/api.md.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/home-assistant

View the source on GitHub

Browse the @skills marketplace