In my previous blogpost, the Sonoff worked, but was lacking a manual override. The switch could only be triggered by Domoticz. Since it also has a physical push button (connected to GPIO0 (D3)), it can be switched by hand. All that needs to be done is:
- Create a new switch device in the Sonoff
- Enable 'Rules' in the Tools / advanced settings
- Create a rule
- Change the On/Off commands in the switch parameters in Domoticz