LaunchKit · 2026
Back to Skills

homeassistant-cli

Advanced Home Assistant control using the official hass-cli tool.

10
3.1k downloads
by @joneschi

Setup & Installation

openclaw skills install @joneschi/homeassistant-cli

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install homeassistant-cli

What This Skill Does

Controls Home Assistant smart home devices via the official hass-cli command-line tool. Supports auto-completion for entity IDs and services, real-time event monitoring, history queries, and multiple output formats (table, YAML, JSON).

Unlike curl-based alternatives, hass-cli provides auto-completion, structured output formatting, and built-in history queries without manual JSON crafting.

When to use it

  • Turn lights on or off by room
  • Check sensor states from the terminal
  • Watch automation events fire in real time
  • Query state history for a device over the past hour
  • Discover available entities and services interactively

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: turn on the living room lights at 50% brightness

AGENT
  1. 1Run `hass-cli state list light` to confirm the entity ID
  2. 2Identify entity as `light.living_room`
  3. 3Call `hass-cli service call light.turn_on --arguments entity_id=light.living_room,brightness=128`
  4. 4Verify with `hass-cli state get light.living_room`
OUTPUT

Living room light turns on at 50% brightness (brightness=128 out of 255)

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Home Assistant instance with network accessHASS_SERVER environment variable set to your Home Assistant URLHASS_TOKEN environment variable set to a long-lived access token generated from your Home Assistant profile