I am looking into getting one of the Sonoff switches and wanted to control a light and keep the functionality of the actual light switch. Once flashed, do these devices have any extra I/O pins that can be used to either detect a low signal or output 3.3v/5v?
My plan is to have the relay state change whenever a ground signal is received on an input pin and update its status to an MQTT server and also be able to control the relay via MQTT. I’m aware if I did this that the switch being in the up position would not necessarily mean the light would be on.
Do you think this would?
Thanks