Home Assistant for Openclaw

A powerful bridge for controlling Home Assistant smart home devices and managing automated workflows via REST API and bidirectional webhooks.

iahmadzain
v1.0.0
Jan 29, 2026
49
21.3k
245

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install home-assistant

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install home-assistant using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Home Assistant?

The Home Assistant skill enables seamless integration between your AI agent and your smart home ecosystem. By leveraging Openclaw Skills, developers can programmatically control a vast array of devices, from lighting and climate to security systems and media players. This skill provides a bridge that allows your agent to not only pull real-time state data from entities but also push commands and respond to event-driven triggers coming directly from your Home Assistant instance.

Built with developer experience in mind, it utilizes the Home Assistant REST API for outbound actions and supports inbound webhooks for reactive workflows. Whether you are building a personal dashboard or an autonomous agent that manages your environment, this skill provides the necessary connectivity and command-line tools to make smart home management effortless.

Home Assistant Use Cases

  • Automating home office lighting and climate based on calendar events or work status.
  • Creating voice-activated or text-driven scenes that combine multiple device states for specific activities.
  • Receiving real-time notifications and taking automated actions when sensors like motion or moisture are triggered.
  • Monitoring energy usage or device states through simple CLI commands or agent queries.

How Home Assistant Works

  1. The skill authenticates with your Home Assistant instance using a Long-Lived Access Token for secure communication.
  2. It interfaces with the Home Assistant REST API to query entity states or invoke specific services such as light.turn_on or climate.set_temperature.
  3. For outbound control, the agent sends POST requests with JSON payloads to the appropriate Home Assistant service endpoints.
  4. For inbound events, Home Assistant can be configured to send webhooks to a designated URL, allowing Openclaw Skills to react to home events instantly.
  5. A dedicated CLI wrapper provides a simplified interface for manual testing and quick interaction with the smart home environment.

Home Assistant Setup

To get started with this integration, ensure you have jq and curl installed. You can configure the skill using one of the following methods:

Create a configuration file at ~/.config/home-assistant/config.json:

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

Option 2: Environment Variables

Alternatively, export the following variables in your shell:

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

You must generate a Long-Lived Access Token from your Home Assistant profile under the "Long-Lived Access Tokens" section.

Home Assistant Data Schema & Taxonomy

The skill interacts with the Home Assistant entity-based data model using JSON. Below is the primary taxonomy used for data exchange:

Component Description Example
entity_id Unique identifier for a device or service. light.living_room
domain The category of the entity. light, switch, climate
state The current status of the entity. on, off, unavailable
attributes Metadata associated with the entity. brightness, temperature, unit_of_measurement
services Executable actions available for a domain. turn_on, trigger, set_temperature

Home Assistant Advanced Features

  • Bidirectional Webhook Support: Enable Home Assistant to trigger agent-side logic through rest_command actions.
  • Comprehensive CLI Wrapper: Use the ha.sh script to list, search, and control entities directly from your terminal.
  • Service Domain Support: Fully compatible with diverse domains including cover, media_player, scene, and script.
  • Detailed State Inspection: Access full entity attributes for precision automation, such as specific brightness levels (0-255) or HVAC modes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*