Since the last update of my Ubiquity UDM router (3.0.20.9281) the Philips Hue App (and hence most of my lights) keeps disconnecting ad reconnecting. If I stare at the tiles on the homey app they go from having the regular colour dot to showing the red alert icon in the span of ten/twenty seconds.
If I tap on one of the lights I get this response time error (see attachment). Please note that the x.x.x.72 IP is the Hue Bridge which is also wired via GbE.
I restarted a couple of times the Hue bridge, my Homey (early 2019) and the network. Any other device linked to Homey works fine (Aqara sensors, Shelly lights, solar panels, etc…) and of course Hue lights via Hue App also work correctly.
The only change in my network configuration as already mentioned has been the UDM update. Any suggestions, or tweaks to have this working normally again?
Where there any changes to UniFi OS network settings with the update? Do you have any Snooping turned on, did Multicast turn off? Did the Nightly Channel Optimization turn on?
Hi Philip, my network setup looks exactly like your screenshot:
Snooping is off
Multicast is on
The Nightly Channel Optimization though is ON. I never touched that setting myself, but judging from what I just read on Ubiquity forum, looks like a good idea to turn it off. I’ll let you know how it goes
It shouldn’t, and I don’t know how it makes any difference with Hue ethernet but I had found it mentioned as a source of problems with Hue and other devices on forums in the past.
Unfortunately, it didn’t work for me. I left it off for the last two days but the behaviour is still the same: going on and off at random times. What is confusing me more is that the official Hue app works and other integrations with Homey, including a solar panel inverter also connected via GbE, still work
Fifteen days later I still haven’t found the reason why the Hue App keeps disconnecting. With the new version of the Homey App I had a glimmer of hope as everything worked for about two days but this morning the app was paused again and all the lights disconnected.
This situation is really frustrating as lights control and flows are a big part of my home automation (as you can imagine). Does anyone has any suggestion on what I can look at to debug this problem (logs, errors or whatever else)? At the moment I am really clueless.
My bad, I assumed that it was happening because of too many timeout errors (which can still be the root cause?) At the moment the Philips Hue App is using 34.7Mb
… and you were right @robertklep .
The Hue app reached the 80Mb limit several times in the last days. I am really puzzled now, as yesterday (4th in the graph) I had been using the lights and all my routines executed with no issues
My guess is that at that time, the connection issues started occurring from which the app couldn’t recover.
Looking at the app code, for local connections (which is the way the app runs on Homey Pro), there’s a polling interval of two seconds. Using intervals for polling is bad practice, because they don’t take into account when state updates take longer than the polling interval (which I think might be happening here). This will cause a buildup of memory and eventually cause the app to get paused.
If this is what’s happening, is a symptom of the timeouts, not the cause.
Looking back at your initial post, the error is saying that the response took more than 5 seconds, which is interesting, because it means that the Homey app was able to make a connection, and send a request, but that the Hue bridge took more than 5 seconds to respond, which would suggest that the Hue bridge might be causing the problems (at least partially).
But again, having a response timeout of 5 seconds while the polling interval is 2 seconds, which is what the Homey Hue app is doing, is just not very smart.