mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update state_object.markdown (#725)
Added explanation on how to retrieve a state attribute that contains a space as i ran into that yesterday: https://github.com/home-assistant/home-assistant/issues/2716
This commit is contained in:
parent
07c36b190d
commit
79921fa22d
@ -37,3 +37,5 @@ Attribute | Description
|
||||
`entity_picture` | Url to a picture that should be used instead of showing the domain icon. Example: `http://example.com/picture.jpg`.
|
||||
`assumed_state` | Boolean if the current state is an assumption. [More info](https://home-assistant.io/blog/2016/02/12/classifying-the-internet-of-things/#classifiers) Example: `True`.
|
||||
`unit_of_measurement` | The unit of measurement the state is expressed in. Used for grouping graphs or understanding the entity. Example: `°C`.
|
||||
|
||||
When an attribute contains spaces, you can retrieve it like this: `states.sensor.livingroom.attributes["Battery numeric"]`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user