tschamm / boschshc-hass

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

compatibility issue - Bosch light / shutter control II not detected #68

Closed DFS-90 closed 2 years ago

DFS-90 commented 2 years ago

Hi,

I use the HACS version of this plugin. As I recently installed some "light / shutter control II" devices, I tried to integrate those into my Home Assistant setup.

Unfortunately, I wasn't able to detect my new devices. Is this a known limitation / problem / incompatibility or am I doing something wrong?

Is there a possibility to integrate the "light / shutter control II" devices in the same way as their predecessor (which works flawlessly in my setup)?

Thanks in advance and best regards, David

tschamm commented 2 years ago

This is basically a feature request for the 3rd party library. I don't own the light/shutter control II (yet), so you can help here by posting the device's JSON data. For the Shutter Control I it looked as follows:

    {
        "@type": "device",
        "rootDeviceId": "64-xx",
        "id": "hdm:HomeMaticIP:30xxx",
        "deviceServiceIds": [
            "ShutterControl"
        ],
        "manufacturer": "BOSCH",
        "roomId": "hz_3",
        "deviceModel": "BBL",
        "serial": "xxx",
        "profile": "GENERIC",
        "name": "Rollladen 2",
        "status": "AVAILABLE",
        "childDeviceIds": []
    },
DFS-90 commented 2 years ago

This is basically a feature request for the 3rd party library. I don't own the light/shutter control II (yet), so you can help here by posting the device's JSON data. For the Shutter Control I it looked as follows:

    {
        "@type": "device",
        "rootDeviceId": "64-xx",
        "id": "hdm:HomeMaticIP:30xxx",
        "deviceServiceIds": [
            "ShutterControl"
        ],
        "manufacturer": "BOSCH",
        "roomId": "hz_3",
        "deviceModel": "BBL",
        "serial": "xxx",
        "profile": "GENERIC",
        "name": "Rollladen 2",
        "status": "AVAILABLE",
        "childDeviceIds": []
    },

Sorry for my delayed answer - I first had to find out how to use Postman and how to establish a secured connection to my Bosch Smart Home controller.

The product I own is shown here: light / shutter control II

This is the Postman output for one of my shutter controls:

0 |   -- | -- @type | "device" rootDeviceId | "64-xx-xx-xx-xx-xx" id | "hdm:ZigBee:dc8exxxxxxxxxxxx" deviceServiceIds |   0 | "ShutterControl" 1 | "CommunicationQuality" 2 | "PowerMeter" 3 | "ChildProtection" 4 | "SwitchConfiguration" manufacturer | "BOSCH" roomId | "hz_7" deviceModel | "MICROMODULE_SHUTTER" serial | "DC8EXXXXXXXXXXXX" profile | "GENERIC" name | "Rolllade (Gartenseite links)" status | "AVAILABLE" childDeviceIds | []

Thanks and best regards, David

DFS-90 commented 2 years ago

I already created the PR for the boschshcpy lib: tschamm/boschshcpy#16 But for completeness sake here is the output from the API

{
    "@type": "device",
    "rootDeviceId": "64-da-a0-XX-XX-XX",
    "id": "hdm:ZigBee: 18fc2600000XXXXX",
    "deviceServiceIds": [
        "CommunicationQuality",
        "ShutterContact",
        "BatteryLevel",
        "Bypass"
    ],
    "manufacturer": "BOSCH",
    "roomId": "hz_7",
    "deviceModel": "SWD2",
    "serial": "18FC2600000XXXXX",
    "profile": "REGULAR_WINDOW",
    "name": "Fenster Bad",
    "status": "AVAILABLE",
    "childDeviceIds": []
}

So basically just the model changed from SWD to SWD2 and two new services CommunicationQuality and Bypass are supported.

@joostme : I guess you own a "door / window contact II", not a "light / shutter control II"?

Thanks and best regards, David

joostme commented 2 years ago

@DFS-90 yeah you're right. I accidentally commented on the wrong issue. My bad

ceedee666 commented 2 years ago

I just created a pull request (https://github.com/tschamm/boschshcpy/pull/19) to add initial support for the Bosch light / shutter control II.

DFS-90 commented 2 years ago

I just created a pull request (tschamm/boschshcpy#19) to add initial support for the Bosch light / shutter control II.

Already done - please see include support for "Bosch light / shutter control II" (deviceModel: "MICROMODULE_SHUTTER") ;-)

tschamm commented 2 years ago

Thank you! The additional services PowerMeter, ChildProtection as well as SwitchConfiguration are not yet supported.