home-assistant-rest
Installation
SKILL.md
Home Assistant REST control from Hermes
When to Use
Any ad-hoc smart-home command from a session: turn lights on/off, check a sensor or media player state, call a service. For the voice pipeline itself use home-assistant-hermes-voice-pipeline.
Procedure
-
Source the token — it is not in the environment or config.yaml:
HASS_TOKEN=$(grep HASS_TOKEN ~/.hermes/profiles/voice/.env | cut -d= -f2) HASS_URL="http://127.0.0.1:8123" -
Find the entity:
GET $HASS_URL/api/states, filter by room/keyword in Python. Room lights have a group entitylight.<room>_<room>that fans out to every lamp in the room — prefer it over individuallight.<room>_<room>_lamp_Nentities. -
Call the service:
POST $HASS_URL/api/services/light/turn_onwith JSON{"entity_id": ...}andAuthorization: Bearer $HASS_TOKEN. -
Verify:
GET $HASS_URL/api/states/<entity>and checkstateis what you expect.