]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Turn pump on/off at 7
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 6 Sep 2023 11:33:19 +0000 (12:33 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 6 Sep 2023 11:33:19 +0000 (12:33 +0100)
pool.yaml

index 1b649aed5f2fdca175078b54069b450d8d9a63ac..75ba9cd65ba673b2f55e1134a7238be7b43138ce 100644 (file)
--- a/pool.yaml
+++ b/pool.yaml
@@ -113,6 +113,8 @@ time:
           - switch.turn_on: ble_switch
           - delay: 2min
           - switch.turn_off: ble_switch
+
+        # Watchdog for 1wire sensors to bounce power when they fail.
       - seconds: 0
         minutes: /1
         then:
@@ -134,6 +136,19 @@ time:
                 # Turn them off and on again.
                 script.execute: bounce_1w_power
 
+        # Turn pool pump on at 7am and off at 7pm
+      - seconds: 0
+        minutes: 0
+        hours: 7
+        then:
+          - switch.turn_on: pool_pump
+      - seconds: 0
+        minutes: 0
+        hours: 19
+        then:
+          - switch.turn_off: pool_pump
+
+
 ethernet:
   type: LAN8720
   mdc_pin: GPIO23