I have flashed a few Kogan smart plugs with ESPHome and they are running well. I have them set to restore_mode: ALWAYS_ON so that they are turned on after startup. but I find that if the internet or wifi is down for reason, the plugs turn off and I cant see how to change that behaviour.
Not sure about the internet issue, I don’t see that.
But ESPhome nodes don’t work without a wifi connection.
Thanks. Is there a way to stop it turning off, or make it default to On if no wifi instead of Off if no wifi?
No, because as I said, the ESP will not function without wifi. You could try this to prevent it rebooting but it may never reconnect (unless you hard power cycle it):
reboot_timeout ( Optional , time): The amount of time to wait before rebooting when no WiFi connection exists. Can be disabled by setting this to
0s
, but note that the low level IP stack currently seems to have issues with WiFi where a full reboot is required to get the interface back working. Defaults to15min
.