Made garage1.yaml restart polling after a failed ota update

This commit is contained in:
2025-10-07 14:06:42 +02:00
parent 273cd9e434
commit d0c2b3993b

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
garageSide: sy # sy, wo garageSide: wo # sy, wo
esphome: esphome:
name: garage${garageSide} name: garage${garageSide}
@@ -7,7 +7,7 @@ esphome:
esp32: esp32:
board: wemos_d1_mini32 board: wemos_d1_mini32
framework: 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: ota:
- platform: esphome - platform: esphome
@@ -15,6 +15,11 @@ ota:
on_begin: on_begin:
then: then:
- hoermann_door.stop_polling: door_controll_internal - 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: api:
encryption: encryption: