From b7d95a18e7bc42acfd5f5becf47553aace1f3e66 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 9 May 2024 10:38:56 +0100 Subject: [PATCH] Retain switch settings across reboot --- pool.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pool.yaml b/pool.yaml index 865658e..91e1c51 100644 --- 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: -- 2.49.0