bahamas10 / hueadm

A command line management interface to Philips hue
206 stars 13 forks source link

Loading Scenes #4

Closed Beersteve closed 6 years ago

Beersteve commented 6 years ago

Good evening

Thank you for this awesome utility. Sadly i have issues loading scenes using your utility. i tried loading a scene using:

hueadm scene 0iuextZLLkiIGi4

Here's the output:

name: W50B lights:

i'd be glad if you could point me in the right direction. Thank you

Kind regards Beersteve

bahamas10 commented 6 years ago

So that output looks right to me... the hueadm scene(s) commands are just used to get/modify/delete scenes.... not "recall" (load) them.

See: https://developers.meethue.com/documentation/scenes-api#44_recall_scene

To recall an existing scene you use the Groups API. Check out the Groups API set group state for details.

There is no builtin method with hueadm to do this (unfortunately! i'd welcome it) but you can do something like this:

$ echo '{"scene":"96AdAhdKe6vY99Z"}' | hueadm group 1

Hopefully this helps!

Beersteve commented 6 years ago

Thanks for the quick response.

I think i will find my way using the information from your response. Thanks for pointing me in the right direction.