Wait for an entity state
wait_for_stateWaits for a Home Assistant entity to reach a target state or change within a timeout, helping confirm that a sent command actually took effect.
Instructions
Wait until an entity reaches a state, or changes from its current state if no target is given, or the timeout passes. Useful after sending a command, to confirm the device really did it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_id": "<entity_id>"
},
"name": "wait_for_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Target state, for example 'on' or 'locked'. Omit to wait for any change. | |
| entity_id | Yes | ||
| timeout_s | No |