mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 11:56:50 +00:00
Add state_class
to KNX sensor (#18782)
This commit is contained in:
parent
3b68b45162
commit
d2ec06eb6e
@ -1334,6 +1334,10 @@ always_callback:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
state_class:
|
||||||
|
description: Sets the [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Value Types
|
### Value Types
|
||||||
@ -1504,6 +1508,7 @@ knx:
|
|||||||
state_address: "6/2/1"
|
state_address: "6/2/1"
|
||||||
sync_state: every 60
|
sync_state: every 60
|
||||||
type: temperature
|
type: temperature
|
||||||
|
state_class: measurement
|
||||||
```
|
```
|
||||||
|
|
||||||
## Switch
|
## Switch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user