Closed swsoyee closed 1 year ago
The log shows a connection reset (by the Hue bridge) on the first attempt to connect to the event stream (on 12:18:31), but on retry 15s later the connection succeeds.
The GET /sensors is Homebridge Hue polling the Hue bridge - nothing to do with the event stream. I haven't seen this status being returned by the Hue bridge before; it would seem the bridge has choked. Power-cycling it seems the way forward.
Did the issue start after upgrading the Hue bridge to a particular firmware version? How many other clients do you have connected to the Hue bridge? Do you have a firewall or reverse proxy in between Homebridge Hue and the Hue bridge?
Did the issue start after upgrading the Hue bridge to a particular firmware version?
Maybe yes. I forgot from which version, feels like it was near July last year(https://developers.meethue.com/rate-limiting-status-code/). Now my hue bridge version is 1.55.1955082050
How many other clients do you have connected to the Hue bridge?
11 lights, 4 sensor, 4 switch and 1 botton. In the meantime I have been using Node-red to get the device status, and accessing the sensor status directly via the API at intervals of several minutes (using curl
command).
Do you have a firewall or reverse proxy in between Homebridge Hue and the Hue bridge?
No. This usually happens after a few hours of normal operation, after that these logs show in the log panel, and I need to unplugging the Bridge to reboot it. Sometimes the same problem occurs again within a very short time, sometimes it work fine lasts for hours or half a day.
Well, the Homebridge log doesn’t show ann excessive amount of requests in a short time. As I said before, I haven’t seen any reports about this before, so my best guess is that it’s due to your specific setup or bridge
Is the API key (username) used by Homebridge Hue shared by other API clients? If so, create a new key and use that exclusively for Homebridge Hue. You might increase the heartrate to poll the bridge less frequently, but I doubt that will make any difference. Not fun, but I would seriously consider factory resetting the Hue bridge.
Thank you for your help, I will try out a the methods you have mentioned. I will let you know if there is any improvement.
After I tried all sorts of methods that didn't improve it, I chose factory resetting the Hue bridge and it worked. Thank you for your advice!
Issue
I found in the log that after a call of
GET /eventstream/clip/v2
, it won't connect anymore. Unless the hue bridge is restarted. I'm usinghomebridge-hue v0.13.51
but I've been having this problem for a long time.Log Messages
Debug Files