From d0c2b3993b9fd9dc5689e9ced2bb93d4080eb93e Mon Sep 17 00:00:00 2001 From: Nicolas Bachschwell Date: Tue, 7 Oct 2025 14:06:42 +0200 Subject: [PATCH] Made garage1.yaml restart polling after a failed ota update --- garage1.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/garage1.yaml b/garage1.yaml index b123a80..a434c3f 100644 --- a/garage1.yaml +++ b/garage1.yaml @@ -1,5 +1,5 @@ substitutions: - garageSide: sy # sy, wo + garageSide: wo # sy, wo esphome: name: garage${garageSide} @@ -7,7 +7,7 @@ esphome: esp32: board: wemos_d1_mini32 framework: - type: arduino # esp-idf is used by side wo, but sy uses an older esp32 chip that seems to crash with esp-idf (likely power issues) + type: esp-idf # esp-idf is used by side wo, but sy uses an older esp32 chip that seems to crash with esp-idf (likely power issues) ota: - platform: esphome @@ -15,6 +15,11 @@ ota: on_begin: then: - hoermann_door.stop_polling: door_controll_internal + - logger.log: "OTA-Update started, stopped polling" + on_error: + then: + - hoermann_door.start_polling: door_controll_internal + - logger.log: "OTA-Update failed, restarted polling" api: encryption: