elgatosf / streamdeck-philipshue

Stream Deck SDK: Philips Hue sample plugin
https://developer.elgato.com/documentation/stream-deck/
MIT License
200 stars 45 forks source link

no access to smart scenes #52

Closed nemroff closed 3 months ago

nemroff commented 1 year ago

Currently, this plugin does not support smart scenes (like the "Natural light" scene that Hue now offers). It would be really great if this supported that! In general, smart and dynamic scene control is lacking in this plugin.

The current workaround is probably using something like HomeAssistant as an intermediary.

From my initial research, I think this may be a large lift requiring some rearchitecting of the plugin. The issues, ranked by my impression of easy to hard:

I'm not sure what environment the Stream Deck's Javascript engine is running in, but I did not see any existing way to define custom trusted certificates in a plugin. Given that limitation, I'd guess the best options are:

nemroff commented 1 year ago

To be clear, I'm not just looking for someone to solve this for me, and I can contribute to this effort. Beyond making sure this issue was raised, my intention was also to learn:

If the answer is no to all three, that points to one of the more complicated (or otherwise less desirable) solutions.

tiptronic commented 1 year ago

Hi @nemroff thanks for your suggestions.

We are aware that the current Hue-plugin is not capable of supporting all that new stuff and we are looking into it.

Currently it is not possible to simply switch from the currrent plugin to the new v2-API and https. That's why certificate-validation won't work. So that needs to get created from scratch. It's not complicated, but the new Hue-API is massive and time is limited ;)

Atm. there are no libraries available to help speeding up this process, so this will certainly take its time.

tiptronic commented 9 months ago

hey @nemroff - you're still in the loop?

nemroff commented 9 months ago

@tiptronic Yep, still here!

tiptronic commented 9 months ago

How do you use smart-scenes and how can I make them appear on the v2 endpoints?

nemroff commented 8 months ago

@tiptronic from the APIv2 endpoint it should be the same usage as with regular scenes. The only key difference is the resource url is /resource/smart_scene instead of /resource/scene

Here is the docs page with the relevant endpoints: https://developers.meethue.com/develop/hue-api-v2/api-reference/

tiptronic commented 8 months ago

That's not what I mean.... I mean, how you use smart scenes? (create them)? I have never seen anything in the smart_scene endpoint and was wondering what a smart_scene is..

tiptronic commented 5 months ago

@nemroff If you like you can give this plugin an early spin