Hello,
I have reprogrammed the sonoff with this new firmware, it is great! I do have a question however:
Using the current firmware I have managed to have the sonoff communicate with mosquito, and am able to use
mosquitto_pub to switch on the sonoff and mosquitto_sub to receive updates when it switches
I have a Sonoff basic and connected Pin5 (GPIO14) and GND to an external button. Pressing the external button switches the relay but I would like it as follows:
- Button pressed
- Update send to Openhab / Domoticz
- Based on some logic: Openhab / Domoticz decides to send a message to switch/toggle the relay
(I am not at all at home to the MQQT lingo :-) So hopefully you can see through that :-) )
So basically I would like to have the direct relation "external button press --> switches relay" configurable..
Is this already available?
Regards,
Dries