From f141adc51a64258519afbc6b561fd957231dbfcd Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Fri, 10 May 2024 20:40:03 +0100 Subject: [PATCH] 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 --- pool.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1