From f3d7f4183ae69dde18b44e2090b50769e9c72817 Mon Sep 17 00:00:00 2001 From: Nicolas Bachschwell Date: Tue, 4 Jun 2024 10:14:56 +0200 Subject: [PATCH] Added a on_time_multiplier to be 0.8 This should help to a better scaling of certain numbers --- chlorPump.yaml | 1 + external_components/chlorine_pump/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chlorPump.yaml b/chlorPump.yaml index dd11919..b72970e 100644 --- a/chlorPump.yaml +++ b/chlorPump.yaml @@ -191,6 +191,7 @@ chlorine_pump: cycle_modifiers: min_on_time: 30 max_on_time: 240 + on_time_multiplier: 0.8 on_pump_value: - lambda: |- if(pState != id(last_pump_state)){ diff --git a/external_components/chlorine_pump/__init__.py b/external_components/chlorine_pump/__init__.py index 14fdbbc..2e974fc 100644 --- a/external_components/chlorine_pump/__init__.py +++ b/external_components/chlorine_pump/__init__.py @@ -26,7 +26,7 @@ CONF_PUMP_TIME_DIVIDER = "pump_time_divider" CONF_CYCLE_MODIFIERS = "cycle_modifiers" CONF_MIN_ON_TIME = "min_on_time" CONF_MAX_ON_TIME = "max_on_time" -CONF_CYCLE_TIME_MULTIPLIER = "on_time_modifier" +CONF_CYCLE_TIME_MULTIPLIER = "on_time_multiplier" CONF_CYCLE_TIME_OFFSET = "on_time_offset" CONF_CYCLE_TIME_IGNORE_MAX_X_BELOW_TARGET = "ignore_max_x_below_target"