Has anyone ventured into Server-Sent Events (SSE) on Edge? I am looking to use an EventSource to get events from a device that implements SSE.
Hi, @blueyetisoftware, SSE it’s not included in the ST libraries yet.
The engineering team is working on that implementation, an example will be provided later on with the Edge Driver for Hue port (there’s no ETA yet).
Once I get an update, I’ll let you know.
Thanks. I have been digging around looking for it and trying to port something over from nginx. Glad they are working on it. That would be a great addition for Edge.
I just caught that you mentioned Hue. I am also working on a Hue driver. Is the ST team releasing one for Edge? Do you know what it will include for features? I’d be interested in collaborating with them if they are interested. I have a working driver other than SSE missing. Please let me know.
Yep, @doug.stephen has been working on that driver recently and it is under internal review now but will be making its way into the beta set and part of the open source repo in time and will include the pieces built out to support SSE used for supporting that portion of the V2 Bridge API. The initial drop for hub-connected will provide feature parity with what is provided today (support for lights only) though I believe that is likely to expand in the future (the SSE Stream should help to support sensors).
The driver we will be publishing will be dropping support for older (deprecated/unsupported by Philips) bridges so a community driver to support that is definitely something we would love to see to support older bridges or other pieces of software that present only the legacy bridge APIs to the world.
I have an edge driver that supports rooms, zones and scenes so it sounds like they may fit together. My driver is also on the V2 Hue API. The only downside to what I have now is that I have to do some amount of polling without the SSE support. With SSE, all of the above would essentially be feature complete. If all of the actions are taken from inside ST, the polling isn’t needed either.
The next addition to my driver was going to be lights/sensors, so it sounds like a good time to hold off on those.
I would be happy to connect offline to see if we can bring these together.