[RELEASE] CoCoHue: Hue Bridge Integration (including scenes!)

Probably, but I'm hoping that improvements Hubitat is making to the EventStream interface will help so it just doesn't happen. :slight_smile: (I will check this out after they are released.)

Also, for anyone who is wondering, I have seen that Philips/Signify just made the v2 API public. They still consider it subject to change and not yet complete, but I'll look into using the parts that I'm not already using (and hope they don't change it that much!). They've also announced plans to deprecate the v1 API, though I personally suspect they will backtrack on how quickly it sounds like they want to do that, given how long it's been around and how much stuff uses it (but they don't have a timeline for any of this that I can see). But right now, there seem to be some oddities with getting the data into Hubitat via its EventStream interface, so hopefully a future update helps with that, too.

4 Likes

Is there any feasibility in allowing assignment of a selected scene or lights to an existing device? I tend to have numbered scenes per room, in descending order of brightness. If I want to use Aurora as scene 2 instead of Tropical Sunset, it would be good if I could just unselect Aurora (leaving the Scene 2 device in place) then assign Tropical to it. Oops the other way around but you know what I mean lol

If you have both added to Hubitat, you can swap their device network IDs, the last part of which is the Hue scene ID (but the rest should be identical). You can't have two devices with the same DNI, so you'll have to temporarily rename one until you're done. The DNI is what CoCoHue reads to get the scene on the Hue side.

But nothing built-in, no.

But when you select a scene from the list of Hue scenes, it always creates a new device anyway doesn't it? So I'd still be left with a device that needs deleting, or keep accumulating unused devices. The swapping out is something I might do fairly often if one could do a swap within your app.

You can delete a scene (or group or bulb) device on Hubitat, and there will be no problem with CoCoHue--that's really the only way to un-import a Hue device. Just make sure you're good on the Hubitat side first, e.g., removing it from any apps.

1 Like

Greetings, all! I've released CoCoHue 4.0 Beta 3 with some changes:

  • improved EventStream (Server-Sent Events/SSE, i.e., "push") processing
  • more polling options in app (more "in-between" options than previous choices in case you want to poll less now but still more often than you might feel comfortable moving up to)
  • minor code refactoring/cleanup in most drivers (should not affect use)

I'd also recommend updating to Hubitat platform version 2.3.0, which was just released today and has some EventStream improvements of its own. As before, you need at least platform 2.2.9 to use the new features, and you need to opt in. (Default is the old/polling-only approach, which should continue to work on platforms back to 2.2.6.)

I think there is still some oddity with either the Hue Bridge or Hubitat's EventStream interface, as the Bridge occasionally (usually once every few minutes for me, sometimes more or less often) reports a spurious disconnect, even though the EventStream itself still seems to be connected. The driver attempts to compensate for short periods of reported disconnection but will eventually report it as such if no data comes in to prove it's not truly disconnected. This is a known issue (but I don't think CoCoHue can do anything to correct it).

If there are any other known issues, I will update the post and try to fix them in the next beta.

The best way to download the beta is to manually install the ZIP file under "Bunldes" in the admin UI. You can get the file here: https://github.com/RMoRobert/CoCoHue/blob/master/beta/CoCoHue-4.0-Beta-3.zip

4 Likes

@bertabcd1234 I am having issue with downlight connected via CoCoHue. Switching on and change temperature and colors are good. Howver when trying to turn it off, the downlight is NOT turned off but just dimmed to the lowest possible dim (around 10%).

Help please.

There's no reason that shouldn't work, so I'm not sure. Does it work from the Hue app? (Or any other integration you might have set up? Alexa, Google, Siri, the built-in Hue integration, etc.)

Turn on debug logging for the device in question on Hubitat as well to see what information is sent (I can decipher; I'm looking for the line with sendBridgeCommand, which should come shortly after off()). If the bulb isn't responding as expected, I'm not sure what can be done, but at least you can try to figure out why.

Found out the reason. Incorrect transition time setting in preference. Some how in the original setup, Several of the transition settings were NOT set to the Hue Default settings.
Thanks.

If you're on the latest beta, I removed those settings. :slight_smile: If you're using third party bulbs, they may still behave differently, but I left the few things that I found to work for Hue bulbs. Glad to figured it out!

I have Hue bulbs and also GLEDOPTO downlights. The issue was with the GLEDOPTO downlights connected to Hue Hub then via CoCoHue to Hubitat. They works fine now.
Will check out the Beta.

If I use the new Preference Manager to turn off debug logging for all of my Hue lights can I leave all of the other preference options unmolested or do I need to make a preference selection for every option available? Suddenly, debug logging is turned on and it is flooding my logs. But I don't want to mess with any other settings and potentially exacerbate the issue if I use the Preference Manager incorrectly.

What had happened was I installed a second Hue hub and moved my lights around to spread the load between the two hubs. In doing so, I apparently turned debug logging on for both hubs' lights and groups. I have confirmed in the CoCoHue app instances that both show the option at the bottom for "Enable Debug Logging" as not selected.

Dang it!!! I just figured out what likely happened to cause debug logging to turn on... It is a habit I've developed and apparently it is now coming back to haunt me. Whenever I type anything in a text field when configuring an app or rule the page does not refresh until I click outside of that text field and when I do the app reloads. My habit has been to just click below the text field because I've been wary of accidentally clicking something inadvertently. However, when I adjusted the names of my two CoCoHue instances and clicked right below the name text field it seems a large amount of that real estate below the text field will trigger a change in the 'Enable Debug Logging' option. So I'm sure I did that and hit the save button without realizing the toggle had been flipped.

So a 'do no harm' fix would be awesome and I think the Preference manager is the way to go if I can surgically change just the debug logging preference and not mess anything else up. Is that anyone's understanding of how to use Preference Manager or do I have to make a selection in all available options? thx

Preference Manager shouldn't touch preferences you haven't specifically selected. That being said, both the CoCoHue app and drivers will automatically disable debug logging after 30 minutes, so even if you did accidentally enable it somehow, it should be a temporary issue. (They also shouldn't be "flooding" anything, mostly just something on each poll or, if you'e using the beta, push--however often either happens.)

Thank you Sir! All great things to know! Flood was probably a little preemptive - I just have too many Hue bulbs so I thought it might be a slippery slope. I really appreciate all your efforts on CoCoHue and your generosity with your time and wisdom!

@bertabcd1234 I noticed for an RGBW bulb, the Set Color command doesn't have a transition time.

Usecase: I have 12 Hue bulbs that illuminate the front of my house - I'm setting up custom "animations" (at a bulb by bulb level) with rule machine to make the lights twinkle, dance, and do other fun things. I'd love to be able to transition between two colors over a period of time, but just for a specific rule (sometimes fast, sometimes slow). Hubitat's standard Set Color doesn't have a transition, nor does the custom command, and I'm not seeing a command that can be invoked from RM to modify the "RGB transition time" Preference.

Is there something I'm missing or any advice? Thanks in advance!

Right, as you note, that is not a standard/documented part of Hubitat's "Set Color" command: Driver Capability List - Hubitat Documentation

That being said, if you're using a custom app, you can include a rate key in your color Map (along with hue, saturation, and value), and CoCoHue will obey that. This isn't documented, but one of the built-in apps does rely on that (Scenes or Scene Transitions? I can't remember). If you're not using a custom app, a Scene or Scene Transition would be a way to do it--that's why this is a pseudo-standard key that I'm surprised isn't offiically documented.

There isn't a way do do it directly a rule because Rule Machine does not let you pass in a Map data structure as parameter, but, of course, an activator device created by the Groups and Scenes app would work if you went that route.

1 Like

Decided to kick the tires on the 4.0 beta today.

I too see the frequent eventStreamStatus connect/disconnects in logs as you mentioned.

Should the eventStreamStatus stuff see more than just switch on/off? Changing the CT, color, level, etc. from the native Hue app doesn't seem to reflect immediately, whereas switch on/off does.

I'm seeing frequent JSON parse errors; looks like this might only be happening on groups that have a lot of lights and create larger JSON responses. Here's one set of examples:

dev:17002021-12-12 02:43:58.534 pm errorgroovy.json.JsonException: issue parsing JSON array

The current character read is '}' with an int value of 125
issue parsing JSON array
line number 1
index number 2027
[{"creationtime":"2021-12-12T19:43:56Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"5ee065f3-8e38-44a9-81db-79d794acb597","id_v1":"/lights/18","owner":{"rid":"935a3161-4925-4a71-8d65-0c8f1341eea1","rtype":"device"},"type":"light"}],"id":"17180b28-2cb4-4c3e-9ba0-6c2b44416ed6","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"dimming":{"brightness":30.31},"id":"44cc537a-bd4c-4cef-85f1-ee5d8b016c7f","id_v1":"/lights/19","owner":{"rid":"e95922b3-f3b9-4824-8e6a-6898a145f0eb","rtype":"device"},"type":"light"}],"id":"d76eae17-c0a4-4752-ba20-17cac28e76ad","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"44cc537a-bd4c-4cef-85f1-ee5d8b016c7f","id_v1":"/lights/19","owner":{"rid":"e95922b3-f3b9-4824-8e6a-6898a145f0eb","rtype":"device"},"type":"light"}],"id":"bc6f2344-92b7-4f75-a435-e7599eb47bca","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"dimming":{"brightness":30.31},"id":"2d58b018-ac08-44f4-8dcd-f9c4c7346f89","id_v1":"/lights/20","owner":{"rid":"07330ceb-508b-40fe-bafa-2a0964fb82dd","rtype":"device"},"type":"light"}],"id":"bd45b21b-8590-4a23-9f18-d7e81cc90d76","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"2d58b018-ac08-44f4-8dcd-f9c4c7346f89","id_v1":"/lights/20","owner":{"rid":"07330ceb-508b-40fe-bafa-2a0964fb82dd","rtype":"device"},"type":"light"}],"id":"1dd385b2-8b06-482c-a66a-ee11625b495b","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"dimming":{"brightness":30.31},"id":"91593946-f2fc-4383-93f6-514b01927d75","id_v1":"/lights/21","owner":{"rid":"98ed125e-9cec-450b-a8fb-df1e6d31d3c4","rtype":"device"},"type":"light"}],"id":"ea235f28-79b7-4be8-8b40-d1d95fce9497","type":"update"},{"creationtime":"2021-12-12T19:43:56Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^ on line 167 (method parse)
dev:17002021-12-12 02:43:41.389 pm errorgroovy.json.JsonException: issue parsing JSON array

The current character read is '}' with an int value of 125
issue parsing JSON array
line number 1
index number 4075
[{"creationtime":"2021-12-12T19:43:39Z","data":[{"dimming":{"brightness":100.0},"id":"57a1dc9c-ef0f-485d-87cc-ca73d83bc574","id_v1":"/lights/4","owner":{"rid":"f0b42c85-c023-4d16-bc47-a6d0becfc4c6","rtype":"device"},"type":"light"}],"id":"ab0e1a7e-768d-435c-985a-6e6672c8d6d5","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"57a1dc9c-ef0f-485d-87cc-ca73d83bc574","id_v1":"/lights/4","owner":{"rid":"f0b42c85-c023-4d16-bc47-a6d0becfc4c6","rtype":"device"},"type":"light"}],"id":"14cd25aa-7d8a-47d1-b422-77c3c5dc22cc","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","on":{"on":true},"owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"c9ea6494-5cea-4b6e-b1d7-d7be46506d7d","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"dimming":{"brightness":100.0},"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"abf91462-0586-4508-bd03-330f1ae86be8","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"5b12fa85-1107-4c65-ad10-b2cc2d7d23ea","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","on":{"on":true},"owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"c2cf3794-75ac-4f27-8003-49397052b857","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"dimming":{"brightness":100.0},"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"4b3f34c2-77db-4bdf-84d9-1521e8e8ab9b","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"97cb37c1-de19-459e-b312-67a58bf44550","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","on":{"on":true},"owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"37d92b1f-3fd8-4861-a8cf-67309623838c","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"dimming":{"brightness":100.0},"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"c90b13c1-4839-42b7-9049-0255ee6b306b","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"a501d26a-ac8c-4edd-a55c-b1e8cf1d7328","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"id":"1be740e5-b4fd-44bc-9a7f-31df6f732844","id_v1":"/lights/8","on":{"on":true},"owner":{"rid":"2c167e19-2873-4d5f-9169-8725af5f3312","rtype":"device"},"type":"light"}],"id":"70368ed8-8574-4795-90e3-b0e26bb2f1c0","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"dimming":{"brightness":100.0},"id":"1be740e5-b4fd-44bc-9a7f-31df6f732844","id_v1":"/lights/8","owner":{"rid":"2c167e19-2873-4d5f-9169-8725af5f3312","rtype":"device"},"type":"light"}],"id":"8bcc2e12-ab4d-45b9-bfbe-0b3faf8eeca5","type":"update"},{"creationtime":"2021-12-12T19:43:39Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^ on line 167 (method parse)
dev:17002021-12-12 02:43:30.874 pm errorgroovy.json.JsonException: issue parsing JSON array

The current character read is '}' with an int value of 125
issue parsing JSON array
line number 1
index number 6121
[{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"8bf496d2-37a5-4ce7-85c7-af0f93cf8b18","id_v1":"/lights/12","on":{"on":true},"owner":{"rid":"647da15d-2100-410c-80dd-4183180c7772","rtype":"device"},"type":"light"}],"id":"7bc97ca8-be2d-4ab4-ac9a-7630defe7973","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"40ea2a2a-6a28-4392-9112-4432d2d82cfa","id_v1":"/lights/23","on":{"on":true},"owner":{"rid":"4b1b8cb2-a8d4-4044-8a84-cfe0c68e424d","rtype":"device"},"type":"light"}],"id":"179364af-7000-435a-8e99-695c76bb7119","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"a55819a8-9566-426f-b8f6-15193724eb84","id_v1":"/lights/13","on":{"on":true},"owner":{"rid":"42f7a67a-79bd-4027-8cc3-85c1f829663d","rtype":"device"},"type":"light"}],"id":"ad48313e-3c7a-434d-bbe3-4dbe5091f734","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"e218e847-87db-42fc-b3ba-ee601f144b95","id_v1":"/lights/24","on":{"on":true},"owner":{"rid":"947e4e5f-73b5-4032-a63b-f450015144d3","rtype":"device"},"type":"light"}],"id":"40fbed40-226e-4d02-9558-2a06b8289542","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"5a24a7f0-d09a-4adc-8a20-349107e3eac8","id_v1":"/lights/14","on":{"on":true},"owner":{"rid":"20cf2fac-24c6-4ddd-b217-a2ff322eff80","rtype":"device"},"type":"light"}],"id":"8caa3440-879d-4b06-a15f-2c3977e76937","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"ed517f70-e745-438e-850c-bbc17ad9c031","id_v1":"/lights/15","on":{"on":true},"owner":{"rid":"86db3a81-0ca9-4e98-844f-77b8dc748711","rtype":"device"},"type":"light"}],"id":"3092a323-b1d3-4562-99e9-c9a833fa5aad","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"58a8fe0a-b2b0-4ec7-8e2f-c1e3af77bbe9","id_v1":"/lights/16","on":{"on":true},"owner":{"rid":"d3572516-59fe-43f9-aa60-b30db6f23ecf","rtype":"device"},"type":"light"}],"id":"445d20ee-68b1-4c77-8d39-81a76bd89b4e","type":"update"},{"creationtime":"2021-12-12T19:43:27Z","data":[{"id":"fdb010fd-0d25-4ea6-8160-1990271850fb","id_v1":"/lights/17","on":{"on":true},"owner":{"rid":"602f6e47-6f3c-49be-932a-6a284ddca94d","rtype":"device"},"type":"light"}],"id":"117ee121-780c-40e3-a8d1-7b68a036ea49","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"5ee065f3-8e38-44a9-81db-79d794acb597","id_v1":"/lights/18","on":{"on":true},"owner":{"rid":"935a3161-4925-4a71-8d65-0c8f1341eea1","rtype":"device"},"type":"light"}],"id":"cfcd34ec-1fe9-4135-8b72-b2fb36a4af44","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"44cc537a-bd4c-4cef-85f1-ee5d8b016c7f","id_v1":"/lights/19","on":{"on":true},"owner":{"rid":"e95922b3-f3b9-4824-8e6a-6898a145f0eb","rtype":"device"},"type":"light"}],"id":"75a6700a-c297-4ddb-b09c-8d2a2cbb77a1","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"57a1dc9c-ef0f-485d-87cc-ca73d83bc574","id_v1":"/lights/4","on":{"on":true},"owner":{"rid":"f0b42c85-c023-4d16-bc47-a6d0becfc4c6","rtype":"device"},"type":"light"}],"id":"19a3017c-695b-4f9c-bd99-3d621cbaa9b7","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","on":{"on":true},"owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"1c44f25a-2c67-4b63-be2b-7149fbd9dc5e","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","on":{"on":true},"owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"0d6c04ab-b363-4dba-a766-e78160c42181","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","on":{"on":true},"owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"16947169-6843-4460-a094-83814484be58","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"1be740e5-b4fd-44bc-9a7f-31df6f732844","id_v1":"/lights/8","on":{"on":true},"owner":{"rid":"2c167e19-2873-4d5f-9169-8725af5f3312","rtype":"device"},"type":"light"}],"id":"653bf4aa-69bc-4a9e-92ed-03f5b367afb7","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"2d58b018-ac08-44f4-8dcd-f9c4c7346f89","id_v1":"/lights/20","on":{"on":true},"owner":{"rid":"07330ceb-508b-40fe-bafa-2a0964fb82dd","rtype":"device"},"type":"light"}],"id":"0e08cbc5-6b99-4a92-a45b-f676d5b47073","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"9385b599-a1c3-478d-91f0-92d970d7bc1c","id_v1":"/lights/10","on":{"on":true},"owner":{"rid":"1fd182fa-95ba-4790-97a2-c7b543fa860c","rtype":"device"},"type":"light"}],"id":"5db315c4-f209-486c-a218-5bb93eeb152c","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"91593946-f2fc-4383-93f6-514b01927d75","id_v1":"/lights/21","on":{"on":true},"owner":{"rid":"98ed125e-9cec-450b-a8fb-df1e6d31d3c4","rtype":"device"},"type":"light"}],"id":"4459e1c8-3379-456d-a775-ad6a7c9b4707","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"d7ba4dd9-e5f7-4c80-a3cd-581c7864532a","id_v1":"/lights/37","on":{"on":true},"owner":{"rid":"c1120e41-0e77-4912-ba25-16c6af6486c3","rtype":"device"},"type":"light"}],"id":"8eb6089d-1693-4edd-a770-141ea6e65af1","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"id":"46e20ce3-7ebc-4770-b98f-c9308e2609d4","id_v1":"/lights/50","on":{"on":true},"owner":{"rid":"d0de1060-d3ab-4891-8de3-b9e12cef1115","rtype":"device"},"type":"light"}],"id":"3c8a39c2-7eeb-4666-9c71-47a627cc6a94","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"dimming":{"brightness":70.08},"id":"8bf496d2-37a5-4ce7-85c7-af0f93cf8b18","id_v1":"/lights/12","owner":{"rid":"647da15d-2100-410c-80dd-4183180c7772","rtype":"device"},"type":"light"}],"id":"e36769fb-5218-4f75-838c-35d72459196b","type":"update"},{"creationtime":"2021-12-12T19:43:28Z","data":[{"dimming":{"brightness":70.08},"id":"40ea2a2a-6a28-4392-9112-4432d2d82cfa","id_v1":"/lights/23","owner":{"rid":"4b1b8cb2-a8d4-4044-8a84-cfe0c68e424d","rtype":"device"},"type":"light"}
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^ on line 167 (method parse)
dev:17002021-12-12 02:41:07.596 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is connected
dev:17002021-12-12 02:41:01.533 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is disconnected
dev:17002021-12-12 02:35:47.557 pm errorgroovy.json.JsonException: issue parsing JSON array

The current character read is '}' with an int value of 125
issue parsing JSON array
line number 1
index number 4075
[{"creationtime":"2021-12-12T19:35:45Z","data":[{"dimming":{"brightness":30.31},"id":"57a1dc9c-ef0f-485d-87cc-ca73d83bc574","id_v1":"/lights/4","owner":{"rid":"f0b42c85-c023-4d16-bc47-a6d0becfc4c6","rtype":"device"},"type":"light"}],"id":"1211c43e-0086-43a0-9e95-8a0c0cd03b3f","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"57a1dc9c-ef0f-485d-87cc-ca73d83bc574","id_v1":"/lights/4","owner":{"rid":"f0b42c85-c023-4d16-bc47-a6d0becfc4c6","rtype":"device"},"type":"light"}],"id":"45ac88bd-d69b-49d2-880a-dbf1238a5f3e","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","on":{"on":true},"owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"8bfd32ff-a56f-48b8-ba42-ab17b666b9c6","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"dimming":{"brightness":30.31},"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"38f1c0c5-c6cd-46d1-ad0d-d3a869cfa18b","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"9b40b794-4761-46a8-aeb4-80939360454a","id_v1":"/lights/5","owner":{"rid":"2cd2a483-de0a-48aa-8dee-4e28e0ff3401","rtype":"device"},"type":"light"}],"id":"f9734abd-3500-4b43-93ba-338d551713ba","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","on":{"on":true},"owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"e8976a23-18e0-477d-addb-ec5b941f4ebb","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"dimming":{"brightness":30.31},"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"68abca50-7c16-4555-ab8c-45efb10c738c","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"3d6d37c6-080a-4fb5-856c-37ba41a6b42a","id_v1":"/lights/6","owner":{"rid":"4b1d01fa-1d9b-41bf-9ec4-19626b1fdd3d","rtype":"device"},"type":"light"}],"id":"277bfa19-aa95-44db-ac6a-4e6d9dab08e4","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","on":{"on":true},"owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"3ad311b0-e55e-44ca-a8d5-29f085c27958","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"dimming":{"brightness":30.31},"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"2191a8c3-66f4-482c-88be-96ca8dca87ef","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}},"color_temperature":{"mirek":367,"mirek_valid":true},"id":"36c800d7-7e1e-4a5b-b3d3-ea41c9ec66ea","id_v1":"/lights/7","owner":{"rid":"257c56c5-74af-4a7e-a8ab-236604546c96","rtype":"device"},"type":"light"}],"id":"d4d2af7d-c10a-4f56-ba58-9b50a9564972","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"id":"1be740e5-b4fd-44bc-9a7f-31df6f732844","id_v1":"/lights/8","on":{"on":true},"owner":{"rid":"2c167e19-2873-4d5f-9169-8725af5f3312","rtype":"device"},"type":"light"}],"id":"2fa36ed0-1fe4-467e-90e9-832d7e160610","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"dimming":{"brightness":30.31},"id":"1be740e5-b4fd-44bc-9a7f-31df6f732844","id_v1":"/lights/8","owner":{"rid":"2c167e19-2873-4d5f-9169-8725af5f3312","rtype":"device"},"type":"light"}],"id":"0c373593-e46e-4264-9656-4d23dadee5d1","type":"update"},{"creationtime":"2021-12-12T19:35:45Z","data":[{"color":{"xy":{"x":0.4578,"y":0.41}
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^ on line 167 (method parse)
dev:17002021-12-12 02:35:24.958 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is connected
dev:17002021-12-12 02:35:18.854 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is disconnected
dev:17002021-12-12 02:33:37.667 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is connected
dev:17002021-12-12 02:33:31.596 pm infoCoCoHue Bridge 13688A (JDH 1F B) eventStreamStatus is disconnected

Its a very long topic, so i apologize if it was asked before. What is the issue with the tuya zigbee light strip controllers being sold lately on ebay etc.. for 10 quid. They work correctly with the hue app, but don't work correctly with the cocohue rgb/rgbw drivers.

I think the lack of event stream updates may be due to the way I use CoCoHue. When I make changes to the zones in the native Hue app, I see the event stream updates come in but I see lots of references to /lights/XX. I don't have the individual lights in Hubitat, so it appears CoCoHue simply takes no action on these.

Any way to change this, or is this just how the event stream interface has to work?

I believe this is the issue with groups I found above:

I'm hoping the API will eventually provide the updates that I'd expect. I think I noted above that I'm only seeing on/off updates. If you are seeing more updates but the color is only xy (as Hue seems to store them now with any scene), that could also explain it--there is currently no parsing for that kind of color information (Hubitat uses hue/sat or CT instead, and there is no easy, reliable conversion I've found, but I'm still trying).