You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be a good idea to add sensor which detect presence of AC mains. It could be implemented by putting AC optocoupler, pooling state and checking if "0V" state last not to long (it should change from 0 to "1" at least 100 times per second).