michielpost / Q42.HueApi

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

Alarm status is parsed wrong when updating alarm #175

Closed niels9001 closed 5 years ago

niels9001 commented 5 years ago

I'm getting an error when trying to set the IsEnabled status of a Schedule.

{"name":"Name","description":"","command":{"address":"/api/ID/groups/8/action","method":"PUT","body":{"bri":255,"on":false}},"localtime":"W127/T15:30:00","status":1}

Response:

[{"error":{"type":7,"address":"/schedules/3/status","description":"invalid value, 1}, for parameter, status"}}]

Seems that the status is set to 1 instead of 'disabled'.

michielpost commented 5 years ago

Thanks, fixed it in version 3.8.4, now on NuGet

niels9001 commented 5 years ago

Cool, thanks!