I have been trying to automatically add the switches to OpenHAB for that I have been exploring the RESTful support from OpenHAB.
In the JSON configuration, seems one of the data to be provided is the Bridge ID (Which is the broker UID). Can someone help me on how to retrieve the Broker UID for the same.
One way I was thinking about is to get the entire thing (GET thing) and parse the JSON Object array for the Broker information. This seems to be pretty good work for me.
Hence would like to explore if there is any other alternative. I am not in preference to hardcode the broker information to the code, so that it would work seamlessly with various other OpenHAB installations as well.
Any thoughts / support would be highly appriciated