A belated comment to this post, but yes, I agree with Alexander about Home Assistant. I resisted for a while but have now become completely hooked.

You can also re-flash all of the Sonoff devices with the excellent Tasmota Open Source firmware, which lets you do a variety of nice things with open standards (MQTT, HTTP) etc and also frees you from dependence on a Chinese web service. You would then need to make use of something like Home Assistant if you wanted to get Alexa integration back, though.