# Philips Hue Constantly Disconnecting/Pausing + API Error?

**URL:** <https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680>\
**Category:** Questions & Help\
**Tags:** homey, hue\
**Created:** [May 18, 2023, 6:13am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680 "2023-05-18T06:13:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [May 18, 2023, 6:13am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/1 "2023-05-18T06:13:12Z")

</div>

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?

Thanks everyone!

 ![21FA11E0-1D1E-43AF-A9A2-A09B4B40BBA1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/a/ea719b9cc1ccc5f0c7cc4e20f45b024aca68754d.jpeg)

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [May 18, 2023, 6:14pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/2 "2023-05-18T18:14:35Z")

</div>

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?

This is mine

 ![Screenshot 2023-05-18 191509](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c8d59fd4ed9b3e77a32405a10445eb308669016b.jpeg)

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [May 19, 2023, 11:23am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/3 "2023-05-19T11:23:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 19, 2023, 11:40am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/4 "2023-05-19T11:40:57Z")

</div>

I have had Channel optimization on since three years and have not had any problems with that. However will wait for your findings.

That shouldn’t impact ethernet access to the Hue hub api.

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [May 19, 2023, 9:35pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/5 "2023-05-19T21:35:17Z")

</div>

Honestly not sure what it does but I had Hue problems until I turned it off

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [May 19, 2023, 9:37pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/6 "2023-05-19T21:37:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [May 21, 2023, 7:57am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/7 "2023-05-21T07:57:40Z")

</div>

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 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [June 5, 2023, 10:07am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/8 "2023-06-05T10:07:31Z")

</div>

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.

Thanks in advance for your help

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 5, 2023, 10:14am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/9 "2023-06-05T10:14:43Z")

</div>

> [@dandooze](#):
>
> but this morning the app was paused again

You didn’t mention that before. An app gets paused when it uses too much memory (more than 80MB).

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [June 5, 2023, 10:25am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/10 "2023-06-05T10:25:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 5, 2023, 10:38am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/11 "2023-06-05T10:38:50Z")

</div>

You can check an app’s memory usage in Insights (perhaps you need to enable the Power User experiment).

It’s very possible the app cannot deal with the timeouts and starts leaking memory when it happens.

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [June 5, 2023, 11:15am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/12 "2023-06-05T11:15:37Z")

</div>

… 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 🤷‍♂️

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/732602944551e72d44caa32dd4cb83aa25f82ec7.png)

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [June 5, 2023, 11:25am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/13 "2023-06-05T11:25:06Z")

</div>

One more datapoint…  
everything looks fine and smooth until 22:20, then in the span of one hour the memory usage climbs up to 80Mb

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9db3986e2618271aa1908b5c3561d4231da21df9.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 5, 2023, 12:22pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/14 "2023-06-05T12:22:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dandooze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dandooze/32/43134_2.png) [@dandooze](https://community.homey.app/u/dandooze)\
**Post date:** [June 6, 2023, 3:45pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/15 "2023-06-06T15:45:00Z")

</div>

Thanks for the explanation @robertklep. From what I read it seems I am basically powerless as I cannot tweak the polling interval nor hacking the Hue app 😅

Yesterday I reset the Hue hub and lock Homey to its closest wifi access point (sometimes it roams to a different one). So far it seems under control, even if at some point it went from ~30Mb to ~40Mb. 🤞

Is there any way to look at logs? Would an app such Simple (sys) Log help me to identify what it is happening?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e5563dc0f42b24e0d3a9ec049450b3e6305d9f5c.png)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 6, 2023, 4:58pm UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/16 "2023-06-06T16:58:03Z")

</div>

> [@dandooze](#):
>
> Is there any way to look at logs? Would an app such Simple (sys) Log help me to identify what it is happening?

The issue is either something internal to the app, or to Homey. You can’t access internal logs, and the only possibility I can think of with an app like Simple Log is to periodically perform an HTTP request to the Hue bridge and log the result. If it fails, and the time of failure coincides with the Hue app starting to run into memory issues, it’s probably a network issue. But I think we already _know_ it’s probably something like that, so I’m not sure how useful such a test would be.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 7, 2023, 12:35am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/17 "2023-06-07T00:35:06Z")

</div>

Will Athom ever going to fix this app 🤔  
@dandooze Did you also create a ticket @ [Athom support](https://homey.app/support) for these issues with the Hue app?

Similar memory issues here (or should I say, polling issues):

> [@Problemen met Philips Hue app (Versie 5.9.0)](https://community.homey.app/t/problemen-met-philips-hue-app-versie-5-9-0/75604/11):
>
> Apps worden op pauze gezet doordat ze bijv. meer dan 80 MBgeheugen gebruiken gedurende x seconden. 80MB is best extreem, omdat apps niet meer dan 30MB zouden moeten gebruiken. De Hue-met-bridge app is hier een voorbeeld van. Workaround: niet Homey opnieuw installeren, maar de app automatisch enablen + herstarten, als het geheugengebruik boven 60 a 70 MB komt, m.b.v. de [Device Capabilities app](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/): of, zonder extra benodigde app iedere x minuten checken of d…

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 7, 2023, 5:34am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/18 "2023-06-07T05:34:05Z")

</div>

I know about the RAM limits, but here philips hue is very stable with more RAM usage. Can you give some information about your hue installation? (Amount of devices and bridges)?

Here my ram usage. (Homey 2023)

 ![IMG_2585](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1ad5556accd0110445a355bdc62b7348b59ce7be.jpeg)

Using 4 hue bridges, ca 85 lights and around 35 devices (motion sensors, buttons and wall plugs)

In the past I had some issues like you. Since my hue bridges are on a static Ip address (in the router, hue bridges self are ‘on DHCP’), my homey is on a fixed IP and tweaked some mesh settings on my ASUS router (homey is not allowed to use mesh and always using the same access point (hopping results in some seconds of connection drop)) and I ‘restarted my whole system after these changes (turn off all the power in the house and restarted all grid powered devices on this way) my issues where gone. But this was ~2 years ago.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [June 7, 2023, 5:48am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/19 "2023-06-07T05:48:03Z")

</div>

> [@Ranney](#):
>
> I know about the RAM limits, but here philips hue is very stable with more RAM usage

FWIW, the RAM limit for rc110 apparently is set to 120MB (I guess that Athom has changed this because the HP2023 has more memory available).

Given that your graph is showing a consistent increase in memory usage, you’ll probably hit that limit within a week or so.

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 7, 2023, 6:19am UTC](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680/20 "2023-06-07T06:19:32Z")

</div>

Yes. On slack they give the info that they make the limit higher. After ca 2 weeks (normally fever happens because of the updates, backups over USB-C)  
But what happens is that the app ‘spontaneously’ restarts and is working again. So for now it is very stable. Bever had any issues.

But… polling 4 bridges is far from ideal ☺

[Next page](https://community.homey.app/t/philips-hue-constantly-disconnecting-pausing-api-error/80680.md?page=2)
