get_state
Retrieve the current state of any Home Assistant entity via the native REST API by passing its entity_id to check sensors, switches, and other states.
Instructions
Get the current state of any HA entity via the native REST API.
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": "get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes |