From 8fe4eb7ac04fa492cb23edaf32728695eff55684 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sat, 18 Nov 2023 18:10:51 +0000 Subject: [PATCH] 15 sec between two slope calculation --- custom_components/versatile_thermostat/open_window_algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/versatile_thermostat/open_window_algorithm.py b/custom_components/versatile_thermostat/open_window_algorithm.py index e9d7304..2bbd418 100644 --- a/custom_components/versatile_thermostat/open_window_algorithm.py +++ b/custom_components/versatile_thermostat/open_window_algorithm.py @@ -13,7 +13,7 @@ from datetime import datetime _LOGGER = logging.getLogger(__name__) # To filter bad values -MIN_DELTA_T_SEC = 30 # two temp mesure should be > 10 sec +MIN_DELTA_T_SEC = 15 # two temp mesure should be > 10 sec MAX_SLOPE_VALUE = 2 # slope cannot be > 2 or < -2 -> else this is an aberrant point