Is that the only entry? IIRC, the v1 API splits these out into different IDs, and it's possible the other ones (which might include battery) just aren't getting matched to this device.
Hey Robert, what do you make of this? "Master Bath Overhead" is a group in Hue. I'm using RL to manage the group. I've noticed this pattern where any time an RGB color is set, the driver comes back with these additional events about being set to CT and color Sodium.
Can't tell without debug logs, but I'm guessing Hue is only reporting the xy color instead of hue/sat color; Hubitat cannot work with the former natively, but there is usually still a CT value in that data, which CoCoHue will latch onto instead. I've been looking at ways to reliably convert this, especially as the Hue v2 API uses it more, but I haven't found anything reliable yet.
Well...I had a weird issue with Room Lighting for this room last night. I think this caused the problem. Normally, it wouldn't be an issue, but the stars aligned.
So, basically, the table in RL doesn't update until the groups flip their switch state to "on" which you can see in the logs doesn't happen until after those CT entries. So, there's a delay between the activation event and the instance going "active."
Normally, that's not an issue, but I managed to hit an edge case last night. The RL instance deactivation event happened while the status was waiting to be updated from the lights. That caused the lights to not turn off on their own. So order was:
Motion event to activate RL instance.
Commands go out to light groups.
Lights come on, but switch state doesn't update.
Motion goes inactive. Since the table isn't updated from the lights, the "off" action is skipped.
The switch states updates and the RL instance goes "active."
Doesn't the scene device work directly if exposed to Google Home as a switch? But there's really no need to use Hubitat for this; Hue has a native Google Home integration, unless you're on the v1 Bridge that is no longer supported for this.
Has anything related to hue groups changed recently ? I’ve noticed that all of my hue groups added via Cocohue no longer react to the on / off command. However other commands such as “flash” still work. This is both through the UI and in rules.
I’ve reauthorized the bridge and given both a reboot but no change ..
Interesting. Causal Googling suggests that's an error on the bridge (as I guess it says) and not with the command being sent, but I'm not sure why. If you're doing a lot at the same time, maybe slow it down to see if you're hitting a rate limit?
I've started seeing this error appear in the logs on my HE hub where I run CocoHue. Any ideas? The JSON output immediately after the error message is quite long. I can send it you in a PM if you like.
Yes, I believe it is this longstanding issue mentioned above:
As far as I can tell, this is something odd with how Hubitat's eventstream library is handing this incoming data or perhaps with how the connection options are being specified on my part, though if it's the latter, I haven't been able to figure out anything that works (there are very few combinations that do; I suspect this might be a side effect of specifying rawData: true, but it doesn't work at all without that). The issue is that the eventstream data gets split up among multiple calls to parse() in the driver instead of coming in all at once, and then each chunk is generally invalid (on its own) and causes this error when trying to parse it.
I've only seen this when large amounts of data are sent at the same time, e.g., when turning off or setting color/CT on all Hue lights or at least large room or zone. Data should eventually catch up via polling (which I recommend keeping enabled still for this reason) or, should they happen on affected devices, other changes on the eventstream interface.
Ok, thanks. That may be possible (large number of changes). Weirdly I have turned the eventstream option off and it still seems to happen.
Also, and I can't confirm this 100% just yet, but I wonder if it may coincide with elevated load and temperature on my hub. Still working through the logs and figures before I can be sure. Still a good chance it is unrelated. I started to see the elevated load at 2-3am earlier this week, so wouldn't expect too much to be happening with the lights at that time.
I am wondering whether @gopher.ny 's comments on the original eventstream / websocket conversation may be relevant. He spoke about making changes late last year. Did these platform changes get applied @gopher.ny ?
EDIT: Actually, that seems to be a different problem, multi-line vs long text....
I am also using the Advanced Hue integration by @armand. I don't see the same error come up there, could there be a difference in the way the two (Advanced Hue and CocoHue) are handling the eventstream data?