Hello,
I would like to share with the community my way of working with ESPHome. I have abused of anchors and references to avoid as much as possible code duplication but there is room for further more improvements. I made it work mainly with sonoff basics but it should work with more devices with simple changes. I’m also open for more devices contributions if someone want to work with it.
Here is the link:
Requirements:
Python 2.7
ESPHome 1.12+
As said before, merge requests are welcome. Please do not expect a high level of support as this is my personal project and I’m just sharing in order to show examples so you guys can create similar or more awesome projects. Cheers!