]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Fix fan timeout if turned on via HA MQTT
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 11 Aug 2024 08:58:50 +0000 (09:58 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 11 Aug 2024 08:58:50 +0000 (09:58 +0100)
humidity.yaml

index 36619312c753ea80d8f03870dcd26437fe6d5849..064d86796c2ec75e553f7e7316f74997315583e0 100644 (file)
@@ -91,7 +91,7 @@ switch:
       then:
         - lambda: |-
             id(tell_domo_nvalue)->execute(${domo_fan}, 1);
-            id(relay_off_time) = 0;
+            id(relay_off_time) = ::time(NULL) + id(fan_delay);
     on_turn_off:
       then:
         - lambda: |-