KmanOz / KmanSonoff

Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant / mqtt
MIT License
282 stars 39 forks source link

Expected behaviour when wifi lost? #30

Open danpowpow opened 5 years ago

danpowpow commented 5 years ago

when/if my wireless access point is restarted, the sonoff 4chr2's i use stop operating via mqtt. the blue status light remains lit, but i cant control the units except via the hard switches. also if i do use the hard switches, it doesn't send via mqtt. resetting the units solves the problem. is this expected behaviour? is their any configuration of this behavior available? I'm aware i could possibly set up a watchdog automation in hass, but I wondered if the feature already exists, or i'm using the code incorrectly.

majbom commented 5 years ago

I also have a "Wifi lost"-problem with my Basics. If I don't set rememberRelayState = true, the relay turns off, when the unit reconnects to the wifi. I have tried with kRetain = 1, but the problem remains.