I was wondering how to add a config to the binding itself, so there is a edit button next to the binding in paperui.
I couldn’t figure out how to do that by looking into other bindings. However there was a config.xml in the openhab cloud connector so I tried to use that without luck.
I’m creating a new binding for my Hue like ecosystem.
At the moment every thing has the server ip set through its properties but there can only be one server on the network so I wanted to move this property to the binding itself, so I was wondering how to add something like properties to the binding and how to access it through code
Yes, I already considered trying that out, but at the moment I’m happy that it works.
Also my system isn’t capable of running two servers/bridge on the same network, so I thought it would be a better idea to give the user only one property since there will only be one server as of now.
I’m not sure what objection there would be to modelling one server as one Bridge. If you’re trying to do something unusual by embedding parameters in the binding itself, it may be a clue that your approach is unusual too.
But it’s your binding of course
You should think of it more like phillips hue, just with a maximum of one bridge per network.
I wanted to use my led strips with custom modes (e.g. rgb modes or vu-meter) so I made my own system for it.
After I got my first Google Home Mini for free from Google I desided to use it for home automation in combination with openHAB. Since there wasn’t an add-on/binding for my system (obviously) I “simply” made my own.