KmanOz / KmanSonoff

Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant / mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expected behaviour when wifi lost?

danpowpow opened this issue · comments

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.

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.