Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Philips Hue - "method, PUT, not available for resource, /scenes" (Java SDK) [closed]

I want to create a scene using the Hue Java SDK. This is the code I am using:

mHueSDK.getSelectedBridge().saveScene(scene, ...);

It does not work, it gives an error. This is the output in onError(...):

method, PUT, not available for resource, /scenes

Why doesn't this work?

Thanks for any help.

like image 623
Thomas Vos Avatar asked Feb 04 '26 10:02

Thomas Vos


1 Answers

PUT is for updating an existing scene. POST is for creating a new scene.

Since saveScene(...) is used to both create new scenes AND to update existing scenes, my guess is that since you got a PUT error, the scene you created is missing some required data, so its trying to do an update PUT instead of a create POST.

like image 112
Ron Reuter Avatar answered Feb 06 '26 02:02

Ron Reuter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!