Philips Hue API v2 Events (Server-Side Events)
Hello everyone,
First of all, hope you all had a very nice Christmas, with all the beloved ones.
I'm using some Philips HUE sensors, and I was actually using some of them to turn KNX lights on.
The problem, is that we need to constantly pool the API, which is time and resource consuming for the HUE hub and Comfortclick.
Philips HUE updated the API to the v2, and they have some interesting features, like the events, which allows to keep a constant connection to a data stream, and get realtime updates without the need to constantly pool the HUB.
https://developers.meethue.com/develop/hue-api-v2/migration-guide-to-the-new-hue-api/#Event%20Stream (Login needed to see the API docs)
Side note:
I have to trick the HUB about the sensor. The sensor needs to be active, and for that at least one HUE light has to be linked. But on my case I don't want to turn on any HUE light, but rather a KNX light. For that, I link the sensor to a random HUE light, and set the actions to do nothing when detecting movement (so I can just extract the true motion from the json).
Back to the topic:
So I've tested the curl command, and I really get the realtime updates, and it looks awesome.
Problem: I can see this realtime updates on the Windows console, by using the curl command, as stated on their documentation:
curl --insecure -N -H 'hue-application-key: ' -H 'Accept: text/event-stream' https:///eventstream/clip/v2
But, I would like to do this on ComfortClick. I've tested several options, but none of them worked.
Anyone can eventually enlighten me, if it's doable?


Yep, it looks like we'll need to wait for an update.
But:
I don't know if the data streams can be useful for other usages. I'm not expecting ComfortClick team to implement data streams just because I would like to use them :-P
So probably this feature can take some time, if any at all...
Fear not, your help was highly appreciated. Thanks for taking some time to test it out.
Best regards,
Ricardo