Homey - Home Automation
by @krausefx
Control Homey home automation hub via CLI. Use when you need to control smart home devices (lights, thermostats, sockets, etc.), check device status, list zones, trigger flows, or perform any Homey automation tasks. Supports on/off, dimming, color changes, temperature control, and device inspection. Safe, capability-allowlisted operations only.
clawhub install homey-cliπ About This Skill
name: homey-cli description: Control Homey home automation hub via CLI. Use when you need to control smart home devices (lights, thermostats, sockets, etc.), check device status, list zones, trigger flows, or perform any Homey automation tasks. Supports on/off, dimming, color changes, temperature control, and device inspection. Safe, capability-allowlisted operations only.
Homey CLI
Safe, agent-friendly CLI for controlling Homey home automation hubs.
What This Skill Provides
Setup
1. Install Dependencies
cd skills/homey-cli
npm install
2. Create Homey App Credentials
1. Go to https://tools.developer.homey.app/tools/app
2. Create a new app with:
- Callback URL: http://localhost:8787/callback
- Note your Client ID and Client Secret
3. Configure Environment
Create .env file:
export HOMEY_CLIENT_ID="your-client-id"
export HOMEY_CLIENT_SECRET="your-client-secret"
export HOMEY_REDIRECT_URL="http://localhost:8787/callback"
4. Login
bash run.sh auth login
Follow the OAuth flow in your browser. Tokens are stored in ~/.config/homey-cli/.
Usage
List Homeys
bash run.sh homey list
Select Active Homey
bash run.sh homey use
Device Operations
# List all devices
bash run.sh devices listList devices as JSON
bash run.sh devices list --jsonGet specific device
bash run.sh devices get Read capability value
bash run.sh devices read onoffControl devices
bash run.sh devices on
bash run.sh devices off
bash run.sh devices dim 0.4
bash run.sh devices color #FF8800
bash run.sh devices temperature 21.5
Flow Operations
# List flows
bash run.sh flows listTrigger flow
bash run.sh flows trigger
Complete Inventory
bash run.sh inventory --json
Safety Model
Write operations are capability-allowlisted for safety:
onoff, dim, light_hue, light_saturation, light_temperature, target_temperatureexport HOMEY_CLI_ALLOWED_CAPABILITIES=onoff,dim,target_temperatureDestructive operations (delete devices, modify flows, change app settings) are not supported.
Common Queries
When users ask:
devices on devices dim 0.5 devices read measure_temperature devices list --json and filter by class/capabilitiesConfiguration Storage
~/.config/homey-cli/credentials.json~/.config/homey-cli/config.jsonTroubleshooting
bash run.sh auth loginbash run.sh devices listHOMEY_CLI_ALLOWED_CAPABILITIES or check if it's a read-only capabilityπ‘ Examples
List Homeys
bash run.sh homey list
Select Active Homey
bash run.sh homey use
Device Operations
# List all devices
bash run.sh devices listList devices as JSON
bash run.sh devices list --jsonGet specific device
bash run.sh devices get Read capability value
bash run.sh devices read onoffControl devices
bash run.sh devices on
bash run.sh devices off
bash run.sh devices dim 0.4
bash run.sh devices color #FF8800
bash run.sh devices temperature 21.5
Flow Operations
# List flows
bash run.sh flows listTrigger flow
bash run.sh flows trigger
Complete Inventory
bash run.sh inventory --json
βοΈ Configuration
1. Install Dependencies
cd skills/homey-cli
npm install
2. Create Homey App Credentials
1. Go to https://tools.developer.homey.app/tools/app
2. Create a new app with:
- Callback URL: http://localhost:8787/callback
- Note your Client ID and Client Secret
3. Configure Environment
Create .env file:
export HOMEY_CLIENT_ID="your-client-id"
export HOMEY_CLIENT_SECRET="your-client-secret"
export HOMEY_REDIRECT_URL="http://localhost:8787/callback"
4. Login
bash run.sh auth login
Follow the OAuth flow in your browser. Tokens are stored in ~/.config/homey-cli/.
π Tips & Best Practices
bash run.sh auth loginbash run.sh devices listHOMEY_CLI_ALLOWED_CAPABILITIES or check if it's a read-only capability