Rename sensor_class to device_class
This commit is contained in:
parent
4b6358c12b
commit
b83f3855ee
8 changed files with 19 additions and 19 deletions
|
@ -30,7 +30,7 @@ Configuration variables:
|
|||
|
||||
- **sensors** array (*Required*): List of your sensors.
|
||||
- **friendly_name** (*Optional*): Name to use in the Frontend.
|
||||
- **sensor_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
|
||||
- **device_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
|
||||
- **entity_id** (*Required*): The entity that this sensor tracks.
|
||||
- **attribute** (*Optional*): The attribute of the entity that this sensor tracks. If no attribute is specified then the sensor will track the state.
|
||||
- **invert** (*Optional*): Invert the result (so `true` means descending rather than ascending)
|
||||
|
@ -50,7 +50,7 @@ binary_sensor:
|
|||
temperature_up:
|
||||
friendly_name: 'Temp increasing'
|
||||
entity_id: sensor.skylight_temperature
|
||||
sensor_class: heat
|
||||
device_class: heat
|
||||
```
|
||||
|
||||
And this one indicates `true` if the temperature is falling:
|
||||
|
@ -62,6 +62,6 @@ binary_sensor:
|
|||
temperature_down:
|
||||
friendly_name: 'Temp decreasing'
|
||||
entity_id: sensor.skylight_temperature
|
||||
sensor_class: cold
|
||||
device_class: cold
|
||||
invert: Yes
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue