homeassistant-cliAdvanced Home Assistant control using the official hass-cli tool. Features auto-completion, event monitoring, history queries, and rich output formatting. Alternative to the curl-based homeassistant skill - choose this if you want a more interactive CLI experience with better discovery and formatting.
Install via ClawdBot CLI:
clawdbot install JonesChi/homeassistant-cliControl your Home Assistant smart home devices using the official hass-cli tool — a feature-rich command-line interface with auto-completion, event monitoring, and flexible output formatting.
homeassistant (curl-based)?Choose homeassistant-cli if you want:
hass-cli event watch)hass-cli state history)Choose homeassistant (curl) if you want:
Both work great — this skill is for users who interact frequently with Home Assistant and want a richer CLI experience.
Before using hass-cli, configure authentication:
https://your-homeassistant:8123/profile
export HASS_SERVER=https://homeassistant.local:8123
export HASS_TOKEN=<your-token>
hass-cli info
# List all entities
hass-cli state list
# Filter by domain
hass-cli state list light
hass-cli state list switch
hass-cli state list sensor
# Get specific entity state
hass-cli state get light.living_room
# Turn on/off lights
hass-cli service call light.turn_on --arguments entity_id=light.living_room
hass-cli service call light.turn_off --arguments entity_id=light.living_room
# Set brightness (0-255)
hass-cli service call light.turn_on --arguments entity_id=light.bedroom,brightness=128
# Turn on/off switches
hass-cli service call switch.turn_on --arguments entity_id=switch.fan
hass-cli service call switch.turn_off --arguments entity_id=switch.fan
# Toggle any device
hass-cli service call homeassistant.toggle --arguments entity_id=light.kitchen
# List all services
hass-cli service list
# Filter services
hass-cli service list light
hass-cli service list 'home.*toggle'
# Get service details (YAML output)
hass-cli -o yaml service list homeassistant.toggle
# List scenes
hass-cli state list scene
# Activate a scene
hass-cli service call scene.turn_on --arguments entity_id=scene.movie_time
# Watch all events
hass-cli event watch
# Watch specific event type
hass-cli event watch state_changed
hass-cli event watch automation_triggered
# Get state history (last 50 minutes)
hass-cli state history --since 50m light.living_room
# Multiple entities
hass-cli state history --since 1h light.living_room switch.fan
Control output with -o or --output:
# Table (default)
hass-cli state list
# YAML
hass-cli -o yaml state get light.living_room
# JSON
hass-cli -o json state list light
# No headers (for scripting)
hass-cli --no-headers state list
hass-cli state list to find entity IDshass-cli service list to find available servicesSee references/examples.md for common automation patterns and use cases.
Generated Mar 1, 2026
Property managers use this skill to remotely monitor and control smart devices across multiple rental units, such as checking thermostat settings, turning off lights, or verifying door locks. It enables efficient property oversight without requiring direct access to each unit's Home Assistant interface, reducing energy waste and enhancing security.
Developers and QA engineers in IoT companies utilize the skill to automate testing of smart home integrations by scripting commands to simulate device states and events. This allows for rapid validation of Home Assistant compatibility and performance under various conditions, streamlining the product development cycle.
Caregivers in assisted living settings employ the skill to manage smart devices that support residents' independence, such as automating lights for safety, monitoring motion sensors, or adjusting climate controls. It provides a command-line interface for quick adjustments and logs to track daily activities and ensure comfort.
Facility managers in office buildings or retail spaces use the skill to optimize energy consumption by scheduling HVAC systems, controlling lighting based on occupancy, and analyzing historical data from sensors. This helps reduce operational costs and meet sustainability goals through precise, scriptable automation.
Companies offer ongoing monitoring and automation setup for smart homes, using this skill to provide remote support, custom scripts, and regular reports. Revenue is generated through monthly or annual subscriptions, targeting homeowners who want hassle-free smart home management without technical expertise.
Consultants and integrators use the skill to design and implement Home Assistant solutions for clients, such as custom automations, device onboarding, and troubleshooting. Revenue comes from one-time project fees or hourly rates, catering to businesses and individuals seeking tailored smart home setups.
Educational providers develop courses and certifications on Home Assistant CLI usage, teaching skills like automation scripting, data analysis, and system optimization. Revenue is generated through course sales, workshops, and certification exams, aimed at IT professionals and hobbyists looking to enhance their expertise.
💬 Integration Tip
Ensure the hass-cli tool is installed and configured with environment variables for server and token before use; leverage auto-completion for faster command entry in interactive sessions.
Control Sonos speakers (discover/status/play/volume/group).
Control Philips Hue lights/scenes via the OpenHue CLI.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Control Home Assistant smart home devices, run automations, and receive webhook events. Use when controlling lights, switches, climate, scenes, scripts, or any HA entity. Supports bidirectional communication via REST API (outbound) and webhooks (inbound triggers from HA automations).
Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehicle, charge controls). Covers onboarding (developer app registration, regions/base URLs), OAuth token flows (third-party + partner tokens, refresh rotation), required domain/public-key hosting, and using Tesla's official vehicle-command/tesla-http-proxy for signed vehicle commands.