diff options
author | KaufHA <[email protected]> | 2022-12-07 21:38:11 -0700 |
---|---|---|
committer | KaufHA <[email protected]> | 2022-12-07 21:38:11 -0700 |
commit | c5a3d94f86eae63a3daf9341fafd9e75740b67a4 (patch) | |
tree | 403793e58d77026e9f3912365da24ce61ed690df | |
parent | 6fa109a9a8c89d1867af78050cd009d963a68a25 (diff) | |
download | PLF10-c5a3d94f86eae63a3daf9341fafd9e75740b67a4.tar.gz PLF10-c5a3d94f86eae63a3daf9341fafd9e75740b67a4.zip |
update common components for ESPHome 2022.12.0
-rw-r--r-- | kauf-plug.yaml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/kauf-plug.yaml b/kauf-plug.yaml index 8202de2..4c0e1e9 100644 --- a/kauf-plug.yaml +++ b/kauf-plug.yaml @@ -15,7 +15,7 @@ substitutions: # https://esphome.io/components/esphome.html#esphome-creators-project project_name: Kauf.PLF10 - project_ver_num: "2.016" + project_ver_num: "2.02" project_ver_let: y # https://esphome.io/components/switch/gpio.html?highlight=restore_mode @@ -138,7 +138,7 @@ external_components: - source: type: git url: https://github.com/KaufHA/common - ref: v2022.11.29 + ref: v2022.12.07.2 refresh: 365250d @@ -915,18 +915,19 @@ select: on_value: - lambda: |- if ( x == "Restore Power Off State") - relay->set_restore_mode(gpio::GPIO_SWITCH_RESTORE_DEFAULT_OFF); + relay->set_restore_mode(SWITCH_RESTORE_DEFAULT_OFF); else if ( x == "Invert Power Off State") - relay->set_restore_mode(gpio::GPIO_SWITCH_RESTORE_INVERTED_DEFAULT_OFF); + relay->set_restore_mode(SWITCH_RESTORE_INVERTED_DEFAULT_OFF); else if ( x == "Always On") - relay->set_restore_mode(gpio::GPIO_SWITCH_ALWAYS_ON); + relay->set_restore_mode(SWITCH_ALWAYS_ON); else if ( x == "Always Off") - relay->set_restore_mode(gpio::GPIO_SWITCH_ALWAYS_OFF); + relay->set_restore_mode(SWITCH_ALWAYS_OFF); else - relay->set_restore_mode(gpio::GPIO_SWITCH_$sub_restore_mode); + relay->set_restore_mode(SWITCH_$sub_restore_mode); // republish state so it gets saved if necessary - id(relay).publish_state(id(relay).state); + // but make sure relay already set up, don't want to publish here on boot + if ( id(relay).is_setup() ) id(relay).publish_state(id(relay).state, true); - script.execute: script_save_changes |