mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Sensor: add state (#34793)
* Sensor: add state * Update source/_integrations/sensor.markdown Co-authored-by: Marcel van der Veldt <marcel.vanderveldt@nabucasa.com> * Add description on unavailable and unkown, streamline formatting --------- Co-authored-by: Marcel van der Veldt <marcel.vanderveldt@nabucasa.com>
This commit is contained in:
parent
42eb974099
commit
b58522c149
@ -20,6 +20,20 @@ Sensors are a basic integration in Home Assistant. They monitor the states and c
|
||||
|
||||
Some of these sensors are built-in to Home Assistant, some are created automatically when you add an integration (see this [list](/integrations/#sensor)), and some can be created manually. The [Statistics](/integrations/statistics) and [Template](/integrations/template) sensors are two examples of the last case.
|
||||
|
||||
## The state of a sensor entity
|
||||
|
||||
The state of a sensor entity is its currently detected value, which can be either text or a number.
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/integrations/sensor/state_sensor.png' alt='Screenshot showing the state of a sensor entity in the developer tools' />
|
||||
Screenshot showing the state of a sensor entity in the developer tools.
|
||||
</p>
|
||||
|
||||
In addition, the entity can have the following states:
|
||||
|
||||
- **Unavailable**: The entity is currently unavailable.
|
||||
- **Unknown**: The state is not yet known.
|
||||
|
||||
## Device class
|
||||
|
||||
{% include integrations/device_class_intro.md %}
|
||||
|
BIN
source/images/integrations/sensor/state_sensor.png
Normal file
BIN
source/images/integrations/sensor/state_sensor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Loading…
x
Reference in New Issue
Block a user