I have basic sonoff set up as light switch connected to rocker switch on the wall. Everything works fine except when I reboot Hassio by unplugging the power. After Hassio reboots, my sonoff switch turns on automatically. When I look at Home Assistant main page it shows light being turned off. Then After couple of tougle on and off it works fine.
So the question is how can I force that sonoff switch to turn off when my Hassio is forced rebooted by unplugging?