This is weird.
Setup has two WiFi routers in the building. Both are 2.4GHz but on different channels. Neither one broadcasts SSID. One WiFi has Internet access, the other is purely local and only used by Sonoff devices and a computer running the MQTT server.
The Sonoff Basic device in question is used to drive the coil of a definite purpose contactor (i.e. relay) which switches power to a fractional HP electric motor. The device has run for a long time with no problems, but the other day it locked up and would not respond on WiFi. Cause eventually traced to this:
When my iPhone has WiFi enabled and is connected to the WiFi router with Internet access, the Sonoff device will eventually lock up when switching the relay on and off. Manual intervention is required to recover. The iPhone does not have the password to the private WiFi router, and is not connected to it.
To make things more odd, if the electric motor is disconnected and the Sonoff Basic is only turning the relay on and off, there's no lock-up. None of the other Sonoff Basic devices I have do this, except that:
This happens with two different Sonoff devices driving the relay, so it's not confined to a single device.
Seems like it may partly be due to AC power line surges that occur when the electric motor is engaged, but why only when the iPhone WiFi is on???
Ideas, anyone?