michielpost / Q42.HueApi

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

Not able to update the light #283

Closed AsbjornKrogh closed 1 year ago

AsbjornKrogh commented 1 year ago

Hey, Im able to retrive information about my lights and get a GUID for the light I would like to update.

When I create a request and makes the UpdateLightAsync I will get an result.error message saying ""device (light) has communication issues, command (.on.on) may not have effect""

Im using the code below var remote = new RemoteHueApi("AppKey", "AccessToken"); var lights = await remote.GetLightsAsync(); var id = lights.Data.First().Id; //Pick a light var req = new UpdateLight().TurnOff(); var result = await remote.UpdateLightAsync(id, req);