]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Fix pump off time
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 10 May 2024 19:40:03 +0000 (20:40 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 10 May 2024 19:40:06 +0000 (20:40 +0100)
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

index 389217bf50b831286ae0c03a8b14a4207c4aa1f7..8ed70be757b49a856fb00d2424dfec8e1246020c 100644 (file)
--- 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();