michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
409 stars 114 forks source link

UpdateSceneAsync() should ignore Id? #94

Closed niels9001 closed 7 years ago

niels9001 commented 7 years ago

await Client.UpdateSceneAsync(SelectedScene.Id, SelectedScene);

sends out this JSON:

{"Id":"dKDKY6a2DJwOrYw","name":"Lentebloesem","lights":["1","4","6"],"appdata":{"version":1,"data":"4uvbC_r05_d18"},"picture":""}

Bridge returns

[ { "error": { "type": 6, "address": "/scenes/dKDKY6a2DJwOrYw/Id", "description": "parameter, Id, not available" } } ]

Setting Id to null currently works as a workaround!

michielpost commented 7 years ago

Fixed in version 2.3.8