Works with the AI Agents you already use
ha tool
Control, query, and manage Home Assistant entities and services via a structured CLI interface.
Free
ha tool
Example session with this skill installed
Find all temperature sensors in the Kitchen and show their current states.
- Read your context and instructions
- Compiled the ha tool
I have queried the Home Assistant registry for temperature sensors located in the Kitchen.
Kitchen Temperature Sensors
| Entity ID | Friendly Name | State | Last Changed |
|---|---|---|---|
sensor.kitchen_multi_temp | Kitchen Multi-Sensor Temperature | 21.4 | 2023-10-27T14:30:05Z |
sensor.fridge_thermometer | Refrigerator Temperature | 3.8 | 2023-10-27T14:45:12Z |
sensor.oven_probe | Oven Internal Probe | unavailable | 2023-10-27T08:00:00Z |
Next steps
- Use
ha-tool -o json history sensor.kitchen_multi_temp --since 1hto see recent trends. - Check the
healthcommand if the oven probe remains unavailable. - Call
ha-tool -o json stale-report --area Kitchento identify other offline devices.
Connects securely to your tools. The creator never sees your data.
About this skill
Managing a Home Assistant instance via a terminal or through agentic workflows often involves clunky API calls or navigating a complex UI. This skill provides a direct interface to ha-tool, enabling programmatic discovery, inspection, and control of your smart home environment.
What it does
- Entity discovery Lists areas, domains, integrations, and services with JSON output.
- State management Inspects current entity states or queries historical data and logbooks.
- Device control Calls services to toggle lights, set thermostats, or trigger automations via structured data.
- System maintenance Validates configuration files, reloads integrations, and monitors system health or error logs.
- Registry editing Renames entities, updates metadata, or wraps switches as lights/fans without manual YAML edits.
- Live monitoring Streams real-time events and state changes using a non-blocking NDJSON format.
How it works
- Discovery Use
searchorinspectto identify target entities and their supported domains. - Query Retrieve state history or render Jinja2 templates to verify logic before deployment.
- Execution Call specific services using the
callcommand with JSON-formatted data and targets. - Validation Run
check-configorstale-reportto ensure the instance is running correctly.
Frameworks & tools
Requires ha-tool (Python-based CLI), HASS_SERVER and HASS_TOKEN environment variables, and optionally uv for execution.
Why this beats prompting it yourself
Writing raw cURL commands for Home Assistant is error-prone due to complex JSON payloads and authentication headers. This skill leverages a specialized CLI that handles the API heavy lifting, providing structured JSON that an agent can parse reliably.
Use cases
- Automate the cleanup of stale or unavailable entities across specific areas.
- Batch rename entity IDs after a hardware migration or integration rebuild.
- Build custom monitoring dashboards by streaming live events via
watch. - Debug automation logic by rendering Jinja2 templates against live sensor data.
Known limitations
The stale-report flag is advisory and may return false positives for change-only sensors. Permanent entity removal is limited to helpers and manual entities.
Stale-report flags are advisory. Registry removals for integration-managed entities require device or config-entry targeting. Environment variables must be pre-configured.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 21 days ago
- Free with an Agensi account
Requires