Yes, exactly that. The difficulty I’m facing is that I started the “framework” right as I started working with the ESP8266. It’s not a proper library yet, it’s a couple of CPP files that I add to every project that references them, and then a few function calls. The framework ties several dependency libraries together exactly the way I want to use them, so that I don’t have to duplicate so much code in each project.
But, since I did that, I have actually made a proper library for building Homie 3.0.1 devices. It’s got an example and everything.
There’s also a couple of other classes, like the button handler I made, designed for advanced functionality for 433 MHz remotes such as counting multiple presses for multiple functions. It actually works more reliably than The Button from fibaro. For example these ones:
Or the all-white version:
They’re under 3 bucks each (aliexpress of course) and work GREAT. After having spent $50 each on two “The Button”, one of which I had to ship to Poland for service, I’ve learned my lesson. The all-white version blends into a UPVC window frame unbelievably well. At these prices the applications are endless.
There’s also several nice wall-mounted ones:
So yeah, anyway. I suppose I should bite the bullet and do the code cleanup and reorganization as soon as possible so I can release it into the wild.