Made garage1.yaml restart polling after a failed ota update
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user