mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 10:17:23 +00:00
Add min_samples to yaml configuration (#29066)
This commit is contained in:
parent
0d7cb8adf7
commit
4852b2d6b2
@ -71,6 +71,11 @@ sensors:
|
|||||||
required: false
|
required: false
|
||||||
type: integer
|
type: integer
|
||||||
default: 2
|
default: 2
|
||||||
|
min_samples:
|
||||||
|
description: The minimum number of samples that must be collected before the gradient can be calculated.
|
||||||
|
required: false
|
||||||
|
type: integer
|
||||||
|
default: 2
|
||||||
min_gradient:
|
min_gradient:
|
||||||
description: >
|
description: >
|
||||||
The minimum rate at which the observed value
|
The minimum rate at which the observed value
|
||||||
@ -130,6 +135,7 @@ binary_sensor:
|
|||||||
entity_id: sensor.outside_temperature
|
entity_id: sensor.outside_temperature
|
||||||
sample_duration: 7200
|
sample_duration: 7200
|
||||||
max_samples: 120
|
max_samples: 120
|
||||||
|
min_samples: 20
|
||||||
min_gradient: -0.0008
|
min_gradient: -0.0008
|
||||||
device_class: cold
|
device_class: cold
|
||||||
|
|
||||||
@ -137,6 +143,7 @@ binary_sensor:
|
|||||||
entity_id: sensor.outside_temperature
|
entity_id: sensor.outside_temperature
|
||||||
sample_duration: 7200
|
sample_duration: 7200
|
||||||
max_samples: 120
|
max_samples: 120
|
||||||
|
min_samples: 20
|
||||||
min_gradient: 0.0008
|
min_gradient: 0.0008
|
||||||
device_class: heat
|
device_class: heat
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user