Smart Home & IoTDocumentedScanned

homeassistant

Control Home Assistant - smart plugs, lights, scenes, automations.

Share:

Installation

npx clawhub@latest install homeassistant

View the full skill documentation and source below.

Documentation

Home Assistant

Control smart home devices via Home Assistant API.

Setup

Set environment variables:

  • HA_URL: Your Home Assistant URL (e.g., ) - HA_TOKEN: Long-lived access token (create in HA → Profile → Long-Lived Access Tokens) ## Quick Commands ### List entities by domain __CODE_BLOCK_0__ ### Turn on/off __CODE_BLOCK_1__ ### Control lights __CODE_BLOCK_2__ ### Trigger scene __CODE_BLOCK_3__ ### Call any service __CODE_BLOCK_4__ ### Get entity state __CODE_BLOCK_5__ ## Entity Domains - switch. — Smart plugs, generic switches - light. — Lights (Hue, LIFX, etc.) - scene. — Pre-configured scenes - automation. — Automations - climate. — Thermostats - cover. — Blinds, garage doors - media_player. — TVs, speakers - sensor.` — Temperature, humidity, etc.


Notes

  • API returns JSON by default
  • Long-lived tokens don't expire — store securely
  • Test entity IDs with the list command first