]> www.infradead.org Git - users/dwmw2/esp32-pool.git/commitdiff
Retain switch settings across reboot
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 9 May 2024 09:38:56 +0000 (10:38 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 9 May 2024 09:38:56 +0000 (10:38 +0100)
pool.yaml

index 865658ece7af4a39e311f4330dc0328c83d83490..91e1c51e0bfb5dd8c4cdefeaefd3d5bd5c80d617 100644 (file)
--- a/pool.yaml
+++ b/pool.yaml
@@ -665,7 +665,7 @@ switch:  #### To switch on and off the communication with the BLE device ####
     id: valve_output
     name: "Valve switch"
     pin: GPIO14
-    restore_mode: ALWAYS_ON
+    restore_mode: RESTORE_DEFAULT_OFF
     on_turn_on:
       then:
         - light.turn_on: green_led
@@ -699,6 +699,7 @@ switch:  #### To switch on and off the communication with the BLE device ####
     pin:
       number: GPIO15
       inverted: true
+    restore_mode: RESTORE_DEFAULT_OFF
     on_turn_on:
       then:
         - script.execute:
@@ -718,6 +719,7 @@ switch:  #### To switch on and off the communication with the BLE device ####
     pin:
       number: GPIO16
       inverted: true
+    restore_mode: RESTORE_DEFAULT_OFF
     on_turn_on:
       then:
         - script.execute:
@@ -737,6 +739,7 @@ switch:  #### To switch on and off the communication with the BLE device ####
     pin:
       number: GPIO4
       inverted: true
+    restore_mode: RESTORE_DEFAULT_OFF
     on_turn_on:
       then:
         - script.execute:
@@ -756,6 +759,7 @@ switch:  #### To switch on and off the communication with the BLE device ####
     pin:
       number: GPIO32
       inverted: true
+    restore_mode: RESTORE_DEFAULT_OFF
     on_turn_on:
       then:
         - script.execute: