Homeassistant
by @chris6970barbarian-hue
Control and monitor Home Assistant smart devices using commands for lights, switches, covers, climate, scenes, and scripts via the HA API.
clawhub install glitch-homeassistantπ About This Skill
Home Assistant Skill
Control smart home devices via Home Assistant API.
Skill Metadata
Setup Commands
Prerequisites
1. Home Assistant running on local network 2. Long-Lived Access Token from HA Profile page
Configuration (One-Command)
# Run this to configure
ha-cli setup Example:
ha-cli setup 192.168.1.100 your_long_lived_token_here
Or set environment variables:
export HA_URL="http://homeassistant.local:8123"
export HA_TOKEN="your_token_here"
Usage Commands
Basic Control
# Turn on device (any type)
ha-cli on
ha-cli onTurn off device
ha-cli off
ha-cli off
Brightness & Color
# Set brightness (0-100)
ha-cli brightness <0-100>
ha-cli brightness 75Set RGB color
ha-cli rgb #RRGGBB
ha-cli rgb #FF5500 "Living Room"
Temperature
# Set temperature
ha-cli
ha-cli 22 thermostat
Scenes & Scripts
# Activate scene
ha-cli scene
ha-cli scene movieRun script
ha-cli script
ha-cli script morning
Status & Discovery
# Check HA status
ha-cli status
ha-cli infoList all entities
ha-cli list
ha-cli list entitiesList by domain
ha-cli list light
ha-cli list switch
ha-cli list climate
Supported Device Types
| Domain | Commands | Examples |
|--------|----------|----------|
| light | on, off, brightness, rgb | ha-cli on living room |
| switch | on, off | ha-cli off tv |
| cover | open, close, stop | ha-cli open blinds |
| climate | temperature, mode | ha-cli 22 thermostat |
| lock | lock, unlock | ha-cli lock front door |
| scene | activate | ha-cli scene movie |
| script | run | ha-cli script morning |
Entity Matching
Error Handling
Related Skills
Files
homeassistant/
βββ SKILL.md # This file
βββ README.md # User documentation
βββ ha-cli # Main CLI executable
βββ ha # Bash wrapper
βββ config.json # Saved configuration
βοΈ Configuration
1. Home Assistant running on local network 2. Long-Lived Access Token from HA Profile page
Configuration (One-Command)
# Run this to configure
ha-cli setup Example:
ha-cli setup 192.168.1.100 your_long_lived_token_here
Or set environment variables:
export HA_URL="http://homeassistant.local:8123"
export HA_TOKEN="your_token_here"