tschamm / boschshcpy

Bosch Smart Home Controller API Python Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compatibility issue - please add Bosch light / shutter control II

DFS-90 opened this issue · comments

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

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".

please see #18