deconz-rest-plugin: Deconz accepts unsupported parameters and reports wrong result

I have a light of this type:

"13": {
        "etag": "2684fc93b06048bb8e955559d8f8f2a9",
        "hascolor": false,
        "manufacturername": "MLI",
        "modelid": "tint Smart Switch",
        "name": "Treppe",
        "swversion": "2.5.3_r47",
        "type": "On/Off light",
        "uniqueid": "ee:ee:03:02:01:03:75:e0-01"
    }

If I send a request like below, it is accepted and a wrong state is reported back.

curl --location --request PUT 'http://X/lights/13/state' \
--header 'Content-Type: text/plain' \
--data-raw '{
	"on": true,
	"bri": 100
}'

The response is:

[
    {
        "success": {
            "/lights/13/state/on": true
        }
    },
    {
        "success": {
            "/lights/13/state/bri": 100
        }
    }
]

But the light is in fact not switched on unless I remove the ‘bri’ key.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 32 (14 by maintainers)

Most upvoted comments

I tested with .78. It works as described by @ebaauw now:

curl --location --request PUT "http://192.168.2.111:40850/api/$API_KEY/lights/13/state" \
--header 'Content-Type: text/plain' \
--data-raw '{
        "on": true,
        "bri": 100
}'
[{"error":{"address":"/lights/13/state","description":"parameter, bri, not available","type":6}},{"success":{"/lights/13/state/on":true}}]%