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

  1. 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"
    
  2. Find the entity: GET $HASS_URL/api/states, filter by room/keyword in Python. Room lights have a group entity light.<room>_<room> that fans out to every lamp in the room — prefer it over individual light.<room>_<room>_lamp_N entities.

  3. Call the service: POST $HASS_URL/api/services/light/turn_on with JSON {"entity_id": ...} and Authorization: Bearer $HASS_TOKEN.

  4. Verify: GET $HASS_URL/api/states/<entity> and check state is what you expect.

Installs
2
GitHub Stars
11
First Seen
14 days ago