From home-assistant
Get the current state of one or all Home Assistant entities. Use when the user wants to check an entity's state or attributes, list all entities, or filter by domain.
How this skill is triggered — by the user, by Claude, or both
Slash command
/home-assistant:get-stateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<objective>
<quick_start>
/home-assistant:get-state light.living_room
/home-assistant:get-state # all entities
/home-assistant:get-state domain=light # filter by domain
</quick_start>
Load credentials before every call: ```bash source ~/.claude/channels/home-assistant/.env ``` If `.env` is missing or `HA_URL`/`HA_TOKEN` are not set, tell the user to run `/home-assistant:access` first. Parse `$ARGUMENTS`: - No args → list all entities - First arg matches `domain=` → list all, then filter display by domain prefix - Otherwise → treat first arg as ``Single entity — get-state <entity_id>:
http --ignore-stdin -b GET "${HA_URL%/}/api/states/<entity_id>" \
"Authorization: Bearer $HA_TOKEN"
Display:
| Field | Value |
|---|---|
| Entity ID | entity_id |
| State | state |
| Last changed | last_changed (formatted) |
| Last updated | last_updated (formatted) |
| Attributes | formatted key: value list |
If 404: entity not found — suggest checking entity ID with /home-assistant:get-state domain=<domain>.
All entities / domain filter — get-state or get-state domain=<domain>:
http --ignore-stdin -b GET "${HA_URL%/}/api/states" \
"Authorization: Bearer $HA_TOKEN"
Display as a table: Entity ID, State, Last Changed. If domain filter provided, only show entities whose entity_id starts with <domain>.. Sort by entity ID. Show total count at the bottom.
<success_criteria>
npx claudepluginhub cameri/claude-skills --plugin home-assistantGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.