Closed TribunMaximus closed 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"
}'
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.
@tschamm, do you mean the brightness sensitivity of the motion light service (Dienste - Bewegungslicht) of a motion detector?
@sebhard correct, in the issue we asked for an option to control the motion light service, if this is possible to set via API.
@tschamm unfortunately, restricted clients are not allowed to make configurations like that and we don't plan to change this any time soon. Sorry!
Thanks for the clarification!
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?