BoschSmartHome / bosch-shc-api-docs

Bosch Smart Home Controller Local REST API
Other
208 stars 44 forks source link

Missing lightlevel attribute at BOSCH Motion sensor #41

Closed TribunMaximus closed 3 years ago

TribunMaximus commented 3 years ago

Is it possible to include the lightlevel information into the api so that it can be changed without the need to use the BOSCH app?

wsirhc commented 3 years ago

Regarding https://community.home-assistant.io/t/bosch-smart-home/115864/99?u=chris.w, here are some curl calls which worked for me example multilevelswitchstate get value

curl --location --request GET 'https://192.168.180.103:8444/smarthome/devices/hdm:ZigBee:0123456789abcdef/services/MultiLevelSwitch/state' \
--header 'Content-Type: application/json' \
--header 'api-version: 1.0'

example multilevelswitchstate value change

curl --location --request PUT 'https://192.168.0.10:8444/smarthome/devices/hdm:ZigBee:0123456789abcdef/services/MultiLevelSwitch/state' \
--header 'Content-Type: application/json' \
--header 'api-version: 1.0' \
--data-raw '{
    "@type": "multiLevelSwitchState",
    "level": "10"
}'
tschamm commented 3 years ago

I think things were mixed up a bit in this issue. The topic of this issue is on the Motion Sensor, and the current API does not expose an option to control the lightlevel (sensitivity) of the motion sensor. @wsirhc The MultiLevelSwitch defines the "brightness level" of a light.

sebastianharder commented 3 years ago

@tschamm, do you mean the brightness sensitivity of the motion light service (Dienste - Bewegungslicht) of a motion detector?

tschamm commented 3 years ago

@sebhard correct, in the issue we asked for an option to control the motion light service, if this is possible to set via API.

sebastianharder commented 3 years ago

@tschamm unfortunately, restricted clients are not allowed to make configurations like that and we don't plan to change this any time soon. Sorry!

tschamm commented 3 years ago

Thanks for the clarification!