I wrote software to ITEAD Sonoff switch and i’m sharing it with you
- uses MQTT to integrate with openHAB
- switch configuration is made via web browser
- optionally you can add ds18b20 temperature sensor to it
- you can upgrade firmware to newer version if there were such in the future (it was a pain for me to open case each time I wanted to add or fix something in the code)
- and few others
currently I have 5 switches connected to my openHAB at home and it works stabe.
here it is source,binaries and docs