zuidwijk / esphome-doorbell

ESPHome based DoorBell
59 stars 17 forks source link

update failed. restore_state has been removed in 2023.7.0 #4

Open gasemans opened 1 year ago

gasemans commented 1 year ago

I am trying to update and receive this error

INFO ESPHome 2023.7.0 INFO Reading configuration /config/esphome/doorbell.yaml... INFO Detected timezone 'Europe/Amsterdam' Failed config

switch.template: [source /config/esphome/doorbell.yaml:79] platform: template name: Doorbell Chime Active id: chime_active

The restore_state option has been removed in 2023.7.0. Use the restore_mode option instead. restore_state: False turn_on_action:

Would it just be as simple as to change state to mode?

gasemans commented 1 year ago

removing the state restore_state: False completly seems to resolve the issue for now.

aodtcr commented 1 year ago

The restore_state option was removed as it was replaced by restore_mode. As such, restore_mode should be replacing restore_state in the doorbell.yaml file with the default value disabled.

jandogger commented 1 year ago

@zuidwijk: please fix the code

cmseasy commented 1 year ago

To start the doorbell after a restart change restore_state: false to restore_mode: ALWAYS_ON