Home Assistant Skill for Openclaw

A command-line interface for managing and controlling smart home devices through the Home Assistant API.

chris6970barbarian-hue
v1.0.0
Feb 17, 2026
0
2.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install glitch-homeassistant

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 glitch-homeassistant 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 Skill?

The Home Assistant Skill is a technical bridge that allows users to interact with their smart home infrastructure directly from the terminal. By utilizing the Home Assistant REST API, it provides a fast and efficient way to manage various entities including lights, switches, covers, and climate controls. This integration is designed to be part of the broader ecosystem of Openclaw Skills, enabling developers to incorporate physical environment control into their automated workflows.

With support for fuzzy entity matching and partial name resolution, the skill removes the friction of remembering exact entity IDs. Whether you are building complex automation scripts or simply want to toggle a light while working in your IDE, this tool provides a professional-grade CLI experience for home automation enthusiasts.

Home Assistant Skill Use Cases

  • Automating office lighting and climate settings during specific development tasks.
  • Triggering 'Focus' or 'Meeting' scenes via terminal commands.
  • Scripting smart home actions to trigger based on CLI-based events.
  • Managing remote Home Assistant instances without needing a web browser.
  • Integrating physical device status checks into other Openclaw Skills workflows.

How Home Assistant Skill Works

  1. The user configures the skill by providing the local or remote Home Assistant URL and a Long-Lived Access Token.
  2. Commands are entered through the ha-cli executable, which parses the action and target entity.
  3. The skill uses fuzzy matching logic to identify the correct Home Assistant entity based on the provided name.
  4. A request is sent to the Home Assistant REST API to execute the desired service (e.g., turning on a switch or setting an RGB color).
  5. The skill receives the API response and displays the status or any relevant error messages to the user.

Home Assistant Skill Setup

To begin using this skill within your collection of Openclaw Skills, you must have a running Home Assistant instance and a Long-Lived Access Token.

# Run the setup command to store your credentials
ha-cli setup <HA_URL> <TOKEN>

# Example usage:
ha-cli setup http://192.168.1.100:8123 your_access_token_here

Alternatively, you can configure the environment variables manually:

export HA_URL="http://homeassistant.local:8123"
export HA_TOKEN="your_token_here"

Home Assistant Skill Data Schema & Taxonomy

The skill organizes its operations through a local configuration file and structured API calls. The data structure is handled as follows:

Component Description
config.json Stores the HA_URL and access token locally for persistent sessions.
Domain Model Maps CLI commands to specific HA domains like light, switch, climate, and lock.
Entity Mapping Uses case-insensitive and fuzzy matching to resolve user input to entity_id strings.
Metadata Processes entity attributes such as brightness levels, RGB hex codes, and temperature values.

Home Assistant Skill Advanced Features

  • Fuzzy matching capabilities that allow 'bed' to resolve to 'light.bedroom_ceiling_light'.
  • Comprehensive domain support including climate control, locks, and covers.
  • Ability to trigger complex Home Assistant scripts and scenes with a single CLI command.
  • Domain-specific filtering when listing entities to quickly find specific hardware.
  • Direct integration with other Openclaw Skills to create unified automation environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*