This is excellent, thank you very much for sharing @hxmelab.
I just started a new job today, so I wonāt have terribly much time to work on this binding until Christmas or so, but Iāll keep on working on it, I promise.
Seeing that the API is so well documented now and having the OpenHap Binding in progress makes me really want to buy more of these cool Bosch Smart Home devices too
I have a ioBroker running on an raspberrypi, so far the bosch-smart-home-bridge adapter for ioBroker works fine. But i would like to use openHab instead of ioBroker, so i hope there will be a binding soon
Great progress @skaestle! When do you estimate the availability of this solution as binding? Wait with a lot of tension for the integration of my sensors and radiator thermostats
P.S. I would also be happy to assist with the tests ā¦
Itās hard to anticipate, I have most of the code for registering OpenHab with the Bosch Smart Home Controller, but it does not work yet. Might be just a quick fix, or very painful, itās really hard to anticipate
Just today there was an update of the Controller, which again broke something (little), but thatās another thing I need to fix before you can test it. Will let you know how it goes
Sorry I did not see that you are already working on a binding. For the iobroker Adapter I created a library to make the integration easier. I did the same for java.
Sorry if I knew this earlier I could have added you as contributer. Just let me know if it is already too late or if you are still interested. At least the information may help?
Thank you @skaestle for your shared Bosch SHC code. The hardest part for me was to setup the correct keystore content, but after this your add-on works well and I now make use of my Bosch SmartHomeController.
Setup of the keystore is very much incomplete in the addon. I wanted to add code that does this automatically from Java, but couldnāt get it to work so far (because of weird packaging issues with mvn)
Could you describe how you set it up? Did you do it from the command line using the keytool?
use the Java ākeytoolā or a UI tool like āKeyStoreExplorerā to create a JKS keystore and import the following three keystore entries. Ensure that your key AND the keystore are both using the same password.
your created key and cert from the first step
the Smart Home Controller Productive Root CA
the Smart Home Controller Issuing CA
The two Smart Home Controller CA certs are provided in the Github repo See Host Verification for more details.
Cool, thatās a really nice explanation of the process, better than the one I was using myself
In the long run, of course, it would be nice to have the addon to these steps automatically. The issue I had was that one of the Java dependencies needed (bouncycastle) didnāt play well with the Maven setup that OpenHab is using. Itās likely that I might have done something wrong, since I donāt know Maven very well.
I asked a while ago here on the forums, but nobody seemed to be able to help with this.
Perhaps one way forward is to write a small program to generate the key and register it with the SHC to test if that even works before trying to integrate it in OpenHab ā¦
And of course thanks @skaestle for starting with the binding. I just checked out everything and try to get it to run.
A bit of background about me: Iām a software developer and recent owner of some Bosch Smart Home devices (3 shutter controls and 2 thermostats). Just starting to play around a bit with all this smart home stuff and openHAB. But it feels quite familiar with my background in web devlopment I just have to get warm again with Java
Thanks for being brave enough to try this out already
Note that currently there is neither support for shutter controls nor thermostats, and I have neither of the available at home for testing.
Now that I added support for quite some of the Bosch devices, the workflow is relatively smooth If you feel like helping a bit, Iād be more than happy to assist with writing the binding, and perhaps Iāll even have a bunch of spare cycles to do a skeleton implementation. For that, Iād probably need some of the debug output that the plugin will produce one you fire it up.
Although your devices are not supported, the plugin should be able to connect to the SHC and list all registered devices (and thanks to Gerd probably also the rooms again!)