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

I've released CoCoHue 4.0 (non-beta) today, with the biggest change being the "instant update" (eventstream or server-sent events/SSE) option, which you can now use in addition to or instead of polling. By default, it is off--so I'm hoping everything should work similar to v3 and earlier for existing users--but you can enable it in the CoCoHue app. This is the same place you'd configure polling interval or other options. (I'd recommend using both for the moment, but if you weren't using polling before, I suppose either way is fine, and if you were, perhaps you'd be comfortable with a lower interval...but the choice is yours.)

NOTE: After upgrading, open the CoCoHue app and press "Done" to finish the upgrade. Also, back up your hub before updating the code (this is always a good idea, but v4 makes some changes that are not compatible with v3 should you want to downgrade CoCoHue after upgrading).

I've had v4 in beta for a while and have only heard of a few known issues, which so far I have been unable to fix and I think are oddities on either the Hue API or Hubitat eventstream interface side of things that I can't control:

  • the Hue Bridge will occasionally report a disconnection of the eventstream interface, even though it was not (necessarily) disconnected; the Bridge driver attempts to find when it is really still connected, but you may still see these events
  • every once in a while--I think when lots of events come in at the same time (e.g., if turning off the "all Hue Lights" group)--the data coming into the Bridge driver appears to get cut off, resulting in an error due malformed/un-parseable data; any missed changes should be found on the next refresh, one reason I don't recommend completely relying on the eventstream

The Hue v2 API that CoCoHue v4 is using is, again, not yet final, so things may change. Let me know if you see any issues, and thanks to the people who have tested things so far!

As usual, code can be installed manually (see README in first post) or via Hubitat Package Manager. New for v4, I've also added a "Bundles" ZIP you can find in the first post for easy manual installation.

6 Likes