rn on Auto-discovery for Home Automation =====
Go to your sonoff console and enter <code>SetOption1... </code>
This turns on auto discover.
Then in HA go to Configuration > Integrations > MQTT .
I had ... * re-enable MQTT from configuration > others
* go to console and type the discovery cmd: “SetOption... GPIOs without any constraints. 3 being RX is also good to avoid (PWM is not working on this GPIO).
=