mthyden / PhillipsHueSIMPLSharp

Crestron SIMPLSharp Philips Hue Implementation
MIT License
55 stars 36 forks source link

Push API instead of polling #34

Open leissnerj opened 2 years ago

leissnerj commented 2 years ago

I've been reading around abit regarding the new philips hue API which supports a push style of update instead of having to poll. Looks to be apart of the "eventstream" protocol, seems like homeassistant has implemented this to have instant updates from hue motions sensors.

Example: https://github.com/homegraph/philips-hue-push-client

Would love to see something like this in this module, I just don't have the skills for it myself

mthyden commented 2 years ago

That is definitely interesting, I’m not entirely sure I can implement an SSE service in the simplsharp sandbox, with a 4-series only variant of the module I’m sure this is totally doable. I’ll look into it this weekend regardless.

On Jan 6, 2022, at 11:46 AM, leissnerj @.***> wrote:

I've been reading around abit regarding the new philips hue API which supports a push style of update instead of having to poll. Looks to be apart of the "eventstream" protocol, seems like homeassistant has implemented this to have instant updates from hue motions sensors.

Example: https://github.com/homegraph/philips-hue-push-client https://github.com/homegraph/philips-hue-push-client Would love to see something like this in this module, I just don't have the skills for it myself

— Reply to this email directly, view it on GitHub https://github.com/mthyden/PhillipsHueSIMPLSharp/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEW4UWMR7O2MCSJTZO6DO3UUXBPHANCNFSM5LMXSSHQ. You are receiving this because you are subscribed to this thread.

mthyden commented 2 years ago

Started working on this, just as a heads up it will be a 4-series only lib. I’m probably going to create an entirely new repo in Github for it. This will be a complete re-write of the existing feature set under the V2 api as well as adding the real time event handling for the motion sensors and switch buttons. I’ve already made good progress so think it should be complete in a couple of weeks.

On Jan 6, 2022, at 11:46 AM, leissnerj @.***> wrote:

I've been reading around abit regarding the new philips hue API which supports a push style of update instead of having to poll. Looks to be apart of the "eventstream" protocol, seems like homeassistant has implemented this to have instant updates from hue motions sensors.

Example: https://github.com/homegraph/philips-hue-push-client https://github.com/homegraph/philips-hue-push-client Would love to see something like this in this module, I just don't have the skills for it myself

— Reply to this email directly, view it on GitHub https://github.com/mthyden/PhillipsHueSIMPLSharp/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEW4UWMR7O2MCSJTZO6DO3UUXBPHANCNFSM5LMXSSHQ. You are receiving this because you are subscribed to this thread.

mthyden commented 2 years ago

Just a quick update, I’ve finished the lighting and motion sensor portion however it turns out the grouped_light API is still incomplete and doesn’t provide the ability to adjust brightness or color which is a pretty fundamental item. Once the API team adds that functionality II can complete the implementation and get it posted.

On Jan 18, 2022, at 9:31 AM, Monte Thyden @.***> wrote:

Started working on this, just as a heads up it will be a 4-series only lib. I’m probably going to create an entirely new repo in Github for it. This will be a complete re-write of the existing feature set under the V2 api as well as adding the real time event handling for the motion sensors and switch buttons. I’ve already made good progress so think it should be complete in a couple of weeks.

On Jan 6, 2022, at 11:46 AM, leissnerj @. @.>> wrote:

I've been reading around abit regarding the new philips hue API which supports a push style of update instead of having to poll. Looks to be apart of the "eventstream" protocol, seems like homeassistant has implemented this to have instant updates from hue motions sensors.

Example: https://github.com/homegraph/philips-hue-push-client https://github.com/homegraph/philips-hue-push-client Would love to see something like this in this module, I just don't have the skills for it myself

— Reply to this email directly, view it on GitHub https://github.com/mthyden/PhillipsHueSIMPLSharp/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEW4UWMR7O2MCSJTZO6DO3UUXBPHANCNFSM5LMXSSHQ. You are receiving this because you are subscribed to this thread.

leissnerj commented 2 years ago

Nicely done, i'm hoping to upgrade to a 4 series processor soon to give it a try