Loading...
Loading...
A skill to build and manage Home Assistant configurations. Use when using the Home Assistant Builder (`hab`) CLI to inspect, create, update, delete, operate, or troubleshoot Home Assistant resources; when a user mentions hab, Home Assistant CLI automation, Lovelace/dashboard edits, helpers, automations, scripts, backups, ESPHome, or Home Assistant operations from a terminal.
npx skill4agent add aahl/skills hass-builderscripts/hab.shhabscripts/hab.shhome-assistant-build-clialias hab='scripts/hab.sh'
hab guide list
hab guide auth
hab schema overview
hab capability probe| Task | First commands |
|---|---|
| Discovery / inventory | |
| Automation / script / scene | |
| Dashboard / Lovelace | |
| Helpers | |
| Calendar / to-do | |
| Backups / system / network | |
| ESPHome | |
hab auth status--jsonsuccessdataerror.codeerror.details.suggested_fixwarningspartial_resultmissing_sectionsverification_commandsnext_suggested_commandsbuildvalidateuploadrunlogs--plan--dry-runget/listsystem restart--force--force| Method | Use when | Pattern |
|---|---|---|
| Short JSON payloads | |
| Larger YAML/JSON payloads | |
| stdin heredoc | Multi-line payload without temp file | |
# Authentication and instance checks
hab auth status
hab overview
hab capability probe
# Entity inventory
hab entity list --domain light
hab entity get light.kitchen --device --related
hab search related entity light.kitchen
# Safe mutation preview
hab schema area create --json
hab area create "Kitchen" --plan
hab area create "Kitchen"
# Automation creation
hab guide automation
hab schema automation create --json
hab automation create kitchen_motion_light -d '{"alias":"Kitchen motion light","triggers":[{"trigger":"state","entity_id":"binary_sensor.kitchen_motion","to":"on"}],"conditions":[],"actions":[{"action":"light.turn_on","target":{"entity_id":"light.kitchen"}}]}' --dry-run
# Operations
hab guide operations
hab system health --json
hab system restart --plan
hab backup list
hab backup delete <backup_id> --planhab| Mistake | Better approach |
|---|---|
| Guessing command flags from memory | Run |
| Parsing text output | Use |
| Creating resources without inventory | |
| Skipping mutation preview | Use |
Using | Confirm the exact risky operation first |
| Treating ESPHome JSON as one object | Handle NDJSON stream events for streaming commands |
Ignoring | Run them or explain why not |