Add min_samples to yaml configuration (#29066)

This commit is contained in:
Jan-Philipp Benecke 2023-12-04 06:49:41 +01:00 committed by GitHub
parent 0d7cb8adf7
commit 4852b2d6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```