While ago I had three LIFX mini bulbs (pretty much useless then) because the LIFX integration to control lights through ST app was kinda incomplete. So with basic JavaScript - Node knowledge I’ve managed to create a connector using the NPM LIFX library and use the bulbs by my own.
Then the integration was needed, so I used the ST-Schema documentation as guidance to made it possible.
Once I shared at a post some npm libraries regarding the Xiaomi Flora Sensor. Here the post:
There hasn’t been an update since then, but surely you can contact these developers to review your code and exchange develop approaches.
Hope this information results useful to you,
Erick.