michielpost / Q42.HueApi

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

DeleteScene() returns null #143

Closed Deery5000 closed 6 years ago

Deery5000 commented 6 years ago

Hi,

Im trying to delete all scenes from the bridge however when i call client.DeleteScene(scene.Id) the HueResults returns null and the scene is not deleted.

Any ideas on this ?

michielpost commented 6 years ago

Are you using the correct scene ID? I just tested this and it works fine.

You can run this test script: https://github.com/Q42/Q42.HueApi/blob/master/src/Q42.HueApi.Tests/SceneTests.cs#L44-L64

DeleteScene indeed returns null, but that's not a problem, the scene is deleted.

Deery5000 commented 6 years ago

Default scenes are deleted but not all of them, 4 remain

michielpost commented 6 years ago

Probably the 4 default scenes?