From: David Woodhouse Date: Fri, 10 May 2024 19:40:03 +0000 (+0100) Subject: Fix pump off time X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f141adc51a64258519afbc6b561fd957231dbfcd;p=users%2Fdwmw2%2Fesp32-pool.git Fix pump off time Setting the off time to 20h in the pump_default script but still invoking it at 19h didn't work very well. It turned the pump back *on* again at 19h. After it had turned off nicely at about 18h. Set it back to 19h as before --- diff --git a/pool.yaml b/pool.yaml index 389217b..8ed70be 100644 --- a/pool.yaml +++ b/pool.yaml @@ -146,7 +146,7 @@ script: auto t = id(sntp_time).now(); if (t.is_valid()) { ESP_LOGD("pump_default", "Setting pump switch at %dh", t.hour); - if (t.hour >= 7 && t.hour < 20) + if (t.hour >= 7 && t.hour < 19) id(pool_pump).turn_on(); else id(pool_pump).turn_off();