Skip to main content
GET
/
v1
/
states
/
{entity_id}
Fetch state of a single entity
curl --request GET \
  --url http://0.0.0.0:3000/v1/states/{entity_id} \
  --header 'Authorization: Bearer <token>'
{
  "entity_id": "light.sala",
  "state": "on",
  "attributes": {
    "friendly_name": "Luz da Sala",
    "brightness": 200,
    "color_temp": 4000
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

entity_id
string
required

entity_id da entidade (ex: light.sala)

Response

Entity state

entity_id
string
state
string | null
attributes
object