mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +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
|
||||
type: integer
|
||||
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:
|
||||
description: >
|
||||
The minimum rate at which the observed value
|
||||
@ -130,6 +135,7 @@ binary_sensor:
|
||||
entity_id: sensor.outside_temperature
|
||||
sample_duration: 7200
|
||||
max_samples: 120
|
||||
min_samples: 20
|
||||
min_gradient: -0.0008
|
||||
device_class: cold
|
||||
|
||||
@ -137,6 +143,7 @@ binary_sensor:
|
||||
entity_id: sensor.outside_temperature
|
||||
sample_duration: 7200
|
||||
max_samples: 120
|
||||
min_samples: 20
|
||||
min_gradient: 0.0008
|
||||
device_class: heat
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user