![]() |
|
Retain Switch status ESPHome after reboot and update / Ethernet setup - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: Getting Started with ESPHome and Home Assistant (https://www.kincony.com/forum/forumdisplay.php?fid=54) +--- Thread: Retain Switch status ESPHome after reboot and update / Ethernet setup (/showthread.php?tid=6869) |
Retain Switch status ESPHome after reboot and update / Ethernet setup - S.Krans - 10-13-2024 Hi if i update the boards A64 / A128 the outputs does not retain their status so if i have switch-1 on and reboot the switch-1 goes off i run ESPHome true Home Assistant and run the automations true node-red is there a possibility to have it retain the previous state before reboot or update Also i want to use my ethernet but it wont connect Code: esphome:Thanks in advance Sijmen RE: Retain Switch status ESPHome after reboot and update / Ethernet setup - admin - 10-13-2024 do you want use KC868-A64 and KC868-A128 work with ESPHome, but need retain the previous OUTPUT state after re power on? RE: Retain Switch status ESPHome after reboot and update / Ethernet setup - S.Krans - 10-14-2024 (10-13-2024, 11:06 AM)admin Wrote: do you want use KC868-A64 and KC868-A128 work with ESPHome, but need retain the previous OUTPUT state after re power on? Yes i got both boards RE: Retain Switch status ESPHome after reboot and update / Ethernet setup - admin - 10-14-2024 the switch yaml code you can add "restore_mode" for that. fox example: switch: - platform: gpio name: "Relay" pin: GPIO12 # your relay GPIO id: relay restore_mode: RESTORE_DEFAULT_ON # or RESTORE_DEFAULT_OFF or ALWAYS_OFF/ALWAYS_ON here is ESPHome about "restore_mode" setting details: https://esphome.io/components/switch/index.html RE: Retain Switch status ESPHome after reboot and update / Ethernet setup - S.Krans - 10-20-2024 (10-14-2024, 10:34 AM)admin Wrote: the switch yaml code you can add "restore_mode" for that. So like this Code: - platform: gpioRE: Retain Switch status ESPHome after reboot and update / Ethernet setup - admin - 10-20-2024 yes |