From 4852b2d6b24ab07c7591fb64632c686803a71821 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Mon, 4 Dec 2023 06:49:41 +0100 Subject: [PATCH] Add min_samples to yaml configuration (#29066) --- source/_integrations/trend.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/_integrations/trend.markdown b/source/_integrations/trend.markdown index 25de2e0aad7..f4818ccd362 100644 --- a/source/_integrations/trend.markdown +++ b/source/_integrations/trend.markdown @@ -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 ```