Wait for state changes
ha_watch_statesWatch Home Assistant entities and return state changes after a cursor, so dashboards show live updates instead of polling.
Instructions
Wait up to wait_seconds for any of these entities to change, and return what changed: for a client showing live states (a dashboard pane) instead of polling. The first call returns every entity's current state; pass back the returned cursor to get only changes after it. Through VomeHome only (the home's Vome component sends the changes); the key needs ha:read on the home.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | The cursor from the last call: only changes after it. | |
| entity_ids | Yes | The entities to watch. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. | |
| wait_seconds | No | How long to wait for a change (default 20). |