01-05-2025, 01:15 AM
there is a "restore_mode" option in ESPHome yaml. default is "ALWAYS_OFF"
you can set to "RESTORE_DEFAULT_ON"
here is details of how to use restore_mode: https://esphome.io/components/switch/index.html
you can set to "RESTORE_DEFAULT_ON"
here is details of how to use restore_mode: https://esphome.io/components/switch/index.html