Random disconnects of Sonoff and other devices on ewelink

If the home power cycles, the devices affected change. But once affected the device will continuously switch off. I have set the power-on state to ‘last state’, this results in a flicker for the light switches. For devices controlling pumps and valves this is going to frustrating. Please help resolve as soon as possible.

Try to set a stationary IP for your devices in the wifi routers setting to avoid DHCP assign new ip for your devices when power down restore.