tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
168 stars 25 forks source link

Connect second controller? #54

Closed xwnzzy closed 2 years ago

xwnzzy commented 2 years ago

Is it possible to connect a second controller or even a third to the system? I've tried a few things, but i could not figure out how to do this.

At first it seems to work but then the authentification fails. I guess that this happens because there is only one cert and key?

Thanks

tschamm commented 2 years ago

This feature is currently not available. Support for multiple cert/key pairs needs to be implemented in the 3rd party library.

tschamm commented 2 years ago

I just wrote a short proof of concept (not yet tested), you can test it by checking out this branch: https://github.com/tschamm/boschshc-hass/tree/feature/multi_shc_support

xwnzzy commented 2 years ago

I just tested it with 3 controllers and so far it works great!

Thanks for the quick help.

Vielen Dank und liebe Grüße

tschamm commented 2 years ago

Just being curious, what's the use case for this? I assume this is a feature not even supported by Bosch itself. Nice! I will merge into master the next days.

xwnzzy commented 2 years ago

We use Bosch Smart Home in our office building. Currently, we still control the individual components with a tablet and 2 cloned apps on an Android tablet. But I would like to change this to get a better overview of the devices.

Bosch itself now says that you can connect a maximum of 100 devices that use the proprietary wireless protocol to one SHC. And since we expect to use more than 100 devices from Bosch, we have already separated as a precaution.

On one controller the Thermostat and smart plugs for boilers and on the other 2 controllers are window contacts and more smart plugs divided on two floors.