Hallo, so I came back to automation after a while away and set up MySensors again on MQTT and tried to pick a decent automation controller. I tried home assistant, but it kept corrupting itself, and then fired up openhab again, not realising that version 3 had just been released.
That worked well with ZWave, till I tried attaching to MySensors and realised that the binding for openhab had all been deprecated and abandoned, which made me sad.
I tried doing direct MQTT, which works, but is easy to forget and debugging numeric IDs each time I want to alter the system was becoming a chore.
After seeing this issue - https://github.com/mysensors/MySensors/issues/1212 a thought came to me.
Could the MySensors MQTT setup be bridged to the Homie conventional one? OpenHab already understands that well enough (they share a dev, so I believe), so that would be an easy integration.
I spend the last few days researching and have built this in node/ typescript
It acts as a (very simplistic) MySensors controller on the MQTT gateway, giving out IDs and what not and provides bidirectional communication between MySensors MQTT and Homie MQTT. It advertises MySensors devices using Homie, and you can receive data and set values using the Homie protocol.
Right now, I've only put support for S_BINARY, but its easy to add in the other types, just that my first use case is relay control.
This lets me auto detect switches in OpenHab 3 and control them, I'll be adding in others soon, but if anyone likes the idea, adding support for the types is easy - https://github.com/daviddawson/mysensors-homie-bridge/blob/master/src/type-handler/s_binary.ts
I'm not sure how complete the controller side of things needs to be, right now it only handles I_ID_REQUEST and I_ID_RESPONSE.