tschamm / boschshcpy

Bosch Smart Home Controller API Python Library
BSD 3-Clause "New" or "Revised" License
56 stars 17 forks source link

compatibility issue - please add Bosch light / shutter control II #17

Closed DFS-90 closed 1 year ago

DFS-90 commented 2 years ago

Hi,

as stated here, support for Bosch light / shutter control II has to be added in the boschshcpy library first.

The product is shown here: light / shutter control II

This is the Postman JSON output for Bosch light / shutter control II:

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 | []

Is it possible to add support for Bosch light / shutter control II?

Thanks in advance and best regards, David

DFS-90 commented 2 years ago

Played a little bit more with Postman and found out that "MICROMODULE_SHUTTER" offers some new services:

deviceModel "BBL" (old):

0 |   -- | -- @type | "DeviceServiceData" id | "ShutterControl" deviceId | "hdm:HomeMaticIP:3014xxxxxxxxxxxxxxxxxxxx" state |   @type | "shutterControlState" calibrated | true referenceMovingTimes |   movingTimeTopToBottomInMillis | 29800 movingTimeBottomToTopInMillis | 30700 level | 1 operationState | "STOPPED" endPositionAutoDetect | true endPositionSupported | true delayCompensationTime | 12.7 delayCompensationSupported | true automaticDelayCompensation | true operations |   0 | "decrementOpenLevel" 1 | "incrementOpenLevel" path | "/devices/hdm:HomeMaticIP:3014xxxxxxxxxxxxxxxxxxxx/services/ShutterControl"

deviceModel "MICROMODULE_SHUTTER" (new):

0 |   -- | -- @type | "DeviceServiceData" id | "PowerMeter" deviceId | "hdm:ZigBee:dc8exxxxxxxxxxxx" state |   @type | "powerMeterState" powerConsumption | 0 energyConsumption | 70 path | "/devices/hdm:ZigBee:dc8exxxxxxxxxxxx/services/PowerMeter" 1 |   @type | "DeviceServiceData" id | "ChildProtection" deviceId | "hdm:ZigBee:dc8exxxxxxxxxxxx" state |   @type | "ChildProtectionState" childLockActive | false path | "/devices/hdm:ZigBee:dc8exxxxxxxxxxxx/services/ChildProtection" 2 |   @type | "DeviceServiceData" id | "SwitchConfiguration" deviceId | "hdm:ZigBee:dc8exxxxxxxxxxxx" state |   @type | "SwitchConfigurationState" switchType | "PUSHBUTTON" swapInputs | false path | "/devices/hdm:ZigBee:dc8exxxxxxxxxxxx/services/SwitchConfiguration" 3 |   @type | "DeviceServiceData" id | "CommunicationQuality" deviceId | "hdm:ZigBee:dc8exxxxxxxxxxxx" state |   @type | "communicationQualityState" quality | "UNKNOWN" path | "/devices/hdm:ZigBee:dc8exxxxxxxxxxxx/services/CommunicationQuality" 4 |   @type | "DeviceServiceData" id | "ShutterControl" deviceId | "hdm:ZigBee:dc8exxxxxxxxxxxx" state |   @type | "shutterControlState" calibrated | true referenceMovingTimes |   movingTimeTopToBottomInMillis | 16500 movingTimeBottomToTopInMillis | 16900 level | 0.9 operationState | "STOPPED" endPositionAutoDetect | true endPositionSupported | true delayCompensationTime | 0 delayCompensationSupported | true automaticDelayCompensation | false operations |   0 | "decrementOpenLevel" 1 | "incrementOpenLevel" path | "/devices/hdm:ZigBee:dc8exxxxxxxxxxxx/services/ShutterControl"

Seems to me that "shutterControlState" hasn't changed in "MICROMODULE_SHUTTER".

DFS-90 commented 2 years ago

please see #18