Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 restore mode
#1
Hello. I purchased a KC868-A16 and got it integrated with home assistant successfully via ESP32. Everything was good until i removed and reconnected power to the board and realized that the way I wired things, I need the board to boot up with outputs 1-16 on. By default they are all turning off upon power up. Can I add something to the yaml and send from ESPhome Builder to change the power on states of the outputs to ON?

I see this snippet in the logs so I assume there should be a way to set restore mode?

GPIO Switch 'light1'
[14:27:40][C][switch.gpio:091]:  Restore Mode: always OFF
[14:27:40][C][switch.gpio:031]:  Pin: 0 via PCF8574
[14:27:40][C][switch.gpio:068]: GPIO Switch 'light2'
[14:27:40][C][switch.gpio:091]:  Restore Mode: always OFF
[14:27:40][C][switch.gpio:031]:  Pin: 1 via PCF8574  etc.....
Reply
#2
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
Reply
#3
[quote pid="18809" dateline="1736039709"]
Thank you for confirming. I eventually figured that out but what confuses me is that when I try to set the restore mode in my yaml file for the esp32, it fights with the same statement in the yaml file that gets loaded for the kc868. I searched with file browser and couldn’t seem to find that file that home assistant is using in the background. Can you offer and advice?

Please excuse me as I have only been using home assistant for a month now. 

thanks 
[/quote]
Reply
#4
?? i don't understand your quesiton.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)