Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HUE spamming error LOG: Error fetching light data: #32380

Closed
Kugelfang666 opened this issue Mar 1, 2020 · 84 comments
Closed

HUE spamming error LOG: Error fetching light data: #32380

Kugelfang666 opened this issue Mar 1, 2020 · 84 comments
Assignees

Comments

@Kugelfang666
Copy link

The problem

Since updating from 0.105.X to 0.106.1 my log becomes spammed with errors.
All hue related items become briefly unavailable in Lovelace and then come back. This is true for all devices on both my hue bridges and always happened simultaneously for both bridges.

Environment

  • Home Assistant release with the issue: 0.106.1
  • Last working Home Assistant release (if known): 0.105.x
  • Operating environment (Hass.io/Docker/Windows/etc.): HASS.IO on NUC
  • Integration causing this issue: HUE
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

Traceback/Error logs

2020-02-29 09:21:33 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching group data: 
2020-02-29 09:21:33 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-02-29 09:14:20 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Error fetching sensor data: 

Additional information

I also have the custom integration "Hue sensor advanced" running on my setup.

@probot-home-assistant
Copy link

Hey there @balloob, mind taking a look at this issue as its been labeled with a integration (hue) you are listed as a codeowner for? Thanks!

@badrobit
Copy link

badrobit commented Mar 1, 2020

This is also an issue on 105.5 (just reverted). IP Addresses removed for obvious reasons.

2020-03-01 17:51:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 576, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/components/hue/light.py", line 375, in async_turn_on
    await self.bridge.async_request_call(self.light.set_action(**command))
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 108, in async_request_call
    return await coro
  File "/usr/local/lib/python3.7/site-packages/aiohue/groups.py", line 80, in set_action
    json=data)
  File "/usr/local/lib/python3.7/site-packages/aiohue/bridge.py", line 78, in request
    ) from None
aiohue.errors.RequestError: Error requesting data from ###.###.###.###: [Errno 104] Connection reset by peer
2020-03-01 17:51:00 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-01 17:52:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 576, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/components/hue/light.py", line 375, in async_turn_on
    await self.bridge.async_request_call(self.light.set_action(**command))
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 108, in async_request_call
    return await coro
  File "/usr/local/lib/python3.7/site-packages/aiohue/groups.py", line 80, in set_action
    json=data)
  File "/usr/local/lib/python3.7/site-packages/aiohue/bridge.py", line 78, in request
    ) from None
aiohue.errors.RequestError: Error requesting data from ###.###.###.###: [Errno 104] Connection reset by peer
2020-03-01 17:52:00 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-01 17:53:52 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-01 17:54:00 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-01 17:55:00 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-01 17:55:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 576, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/components/hue/light.py", line 377, in async_turn_on
    await self.bridge.async_request_call(self.light.set_state(**command))
  File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 108, in async_request_call
    return await coro
  File "/usr/local/lib/python3.7/site-packages/aiohue/lights.py", line 117, in set_state
    json=data)
  File "/usr/local/lib/python3.7/site-packages/aiohue/bridge.py", line 78, in request
    ) from None
aiohue.errors.RequestError: Error requesting data from ###.###.###.###: [Errno 104] Connection reset by peer
2020-03-01 17:55:00 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 

@balloob
Copy link
Member

balloob commented Mar 2, 2020

@badrobit that was fixed in 106.

@Kugelfang666 please try without any Hue related custom component.

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Mar 5, 2020

HI. just chiming in to let you know on 106.5 this is still observed very frequently, and Hue light go unavailable beyond a workable situation..

2020-03-05 16:47:58 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching group data: 
2020-03-05 16:48:18 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching group data: 
2020-03-05 16:48:23 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Error fetching sensor data: 
2020-03-05 16:48:27 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching light data: 
2020-03-05 16:48:42 ERROR (MainThread) [homeassistant.components.hue.light] Error fetching group data: 

@Kugelfang666
Copy link
Author

@Mariusthvdb:

Are you using the custom integration "Hue sensor advanced"?

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Mar 5, 2020

if you are referring to @robmarkcole 's Custom integration I have used that for ages, and every time I test the Hue integration in Hass.io, I take it out, because dev team wont/can't accept issues with this alive in the setup. It does seem to intensify this issue, so be sure to take it out for testing purposes.

Schermafbeelding 2020-03-05 om 17 15 59

happening as we speak

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 5, 2020

ao i just removed @robmarkcole custom integration from my setup to try it without. Unfortunately my setup heavily relies on this component since im using the hue dimmer switches all over to control non hue stuff via HA.....

@balloob
Copy link
Member

balloob commented Mar 5, 2020

@Mariusthvdb you said in another issue that you use the Rest sensor to hit the Hue API too. Disable those too. Hue only supports a limited number of requests per second. The error shows up when the Hue hub is overwhelmed.

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 5, 2020

I can confirm the issue also occurs without the custom integration. This makes sense since I was using the combination since months without any issues and they popped up just after the update to 0.106 without any change to my hue setup

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Mar 5, 2020

@Mariusthvdb you said in another issue that you use the Rest sensor to hit the Hue API too. Disable those too. Hue only supports a limited number of requests per second. The error shows up when the Hue hub is overwhelmed

Correct, I have 1 rest sensor now that checks the lights for ‘reachable’ which is needed to distinguish lights being truly unavailable because of no power, or unavailable because of this issue. setting allow_unreachable: true shows these lights as on/off so we need a way to get the ‘reachable’ attribute in the HA state machine.

Screenshot

94FCC638-207D-42E8-893C-857952BE89F7

Will take it out for testing also.
Thanks

@balloob
Copy link
Member

balloob commented Mar 5, 2020

@Kugelfang666 how many hue devices do you have ?

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 5, 2020

Hue Bridge 1
5x motion detectors,
11x Dimmer switches
23x Lamps

Hue Bridge 2
2x motion detectors,
3x Dimmer switches
1x Hue Tap
10x Lamps

@balloob
Copy link
Member

balloob commented Mar 5, 2020

For the record, the Hue custom integration is absolute trashing your Hue hubs. It doesn't leverage existing caches, it doesn't cache itself either across the different platforms and is just hammering your hubs non-stop. It doesn't just break Home Assistant, I bet a lot of other stuff communicating with Hue (like Harmony) is also hurting by it.

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 5, 2020

ok, fair point, the only thing i don't understand is why the error popped out just after the update to 0.106. I'm always keeping a close eye on the error log and this is the first time I saw it.

Also as I wrote earlier, I just uninstalled the custom component and removed the entries from config.yaml and after just 30 min the same error was in the log

is there an easy way to diagnose which devices (on my network) or integrations from HA are polling my bridges?

@Kugelfang666
Copy link
Author

I just updated to the new version which has the lower polling rate (0.5) , I'll give it a spin and report back,

gernerally speaking, having the hue dimmer switches available in HA as sensors for me is a major asset since I'm heavily using them to trigger automation, control devices... Hence, having a "proper" solution would be fantastic.

@balloob
Copy link
Member

balloob commented Mar 5, 2020

I would get yourself a Conbee 2 stick. Instant sensors/remote updates instead of polling for changes. The Hue Hub API just isn't meant for this.

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 5, 2020

sorry off topic:

which I actually already have, unfortunately deCONZ had two limitations for me:

  1. it does not allow to configure the scenes which are loaded in case of motion being detected as a function of time. Let's say 7-23 Scene A, 23-7 Scene B

  2. I could not manage to make two dimmer switches within one group cycle through different sets of scenes. Switch 1 Scene 1,2,3 , Switch 2 Scene 3,1,2,6,7

  3. I found the scene transitions to be a bit rougher than with the hue brigade (but im not entirely sure about this one)

I was about to move my whole setup over but 1. and 2. were a deal breaker for me. Currently im using the iOS App iconnecthue to manage my hue bridge which actually allows for all these functions.

@Kugelfang666
Copy link
Author

Also with the reduced poll rate I still get the errors in my brige

@Kugelfang666
Copy link
Author

Kugelfang666 commented Mar 6, 2020

i have quite some command line switches in my setup to deactivate my hue motions sensors:

switch:
  - platform: command_line
    switches:
      hue_schedule_we_switch:
        friendly_name: "Fade Light In"
        command_on: curl -X PUT -d '{"on":true}' "192.168.178.36/api/XXXXXXX/sensors/49/config"
        command_off: curl -X PUT -d '{"off":true}' "192.168.178.36/api/XXXXXXX/sensors/49/config"
        value_template: "{{ is_state('sensor.arbeitszimmer_motion_sensor', 'on') }}"

could it be that this is also hammering the bridge to check ists state? I'm just trying to diagnose if something else in my setup might also be contributing to this issue

@Mariusthvdb
Copy link
Contributor

I would get yourself a Conbee 2 stick. Instant sensors/remote updates instead of polling for changes. The Hue Hub API just isn't meant for this.

to try and take out the need for the custom integration (which holds a great deal of extra info than the current Core does), we can add some of these extra attributes to the core HA integration, hope this will be allowed.
Next to these attributes, we really need to integrate the Hue remotes into HA. Is anyone working on that, or is an architecture discussion needed for that before doing so.

@balloob
Copy link
Member

balloob commented Mar 6, 2020

@Kugelfang666 that won't hit the server unless you're turning them on/off. However that value template is sourced from the hub…

@Mariusthvdb you don't need an architecture issue, you need a developer to fix it. Remotes however will never work great, as it's a polling API so things will never be instant unless you hammer the hub, which we won't allow, as that's causing this issue to begin with.

@Kugelfang666
Copy link
Author

Thanks for the feedback.

Is the value template regularly polled or just checked when the switch is operated?

@balloob
Copy link
Member

balloob commented Mar 6, 2020

Value template is only evaluated when the sensor.arbeitszimmer_motion_sensor state changes. It does not interact directly with the hub to get the state.

@Kugelfang666
Copy link
Author

ok thanks for pointing this out, the only thing I still don't understand is why this error just popped out with the latest HA update, I'm 100% positive at there was no such entry in the log. could it be that earlier it was not reported?

@Mariusthvdb
Copy link
Contributor

@Mariusthvdb you don't need an architecture issue, you need a developer to fix it. Remotes however will never work great, as it's a polling API so things will never be instant unless you hammer the hub, which we won't allow, as that's causing this issue to begin with.

Yes I understand that, and wouldn't want to do so. Thats why I had the Custom integration poll per second, not 0.1 second and that worked fine. Would you consider that too much still? If not, I think this would be just fine to have in core HA.

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Mar 7, 2020

fwiw, Ive deleted all Custom integrations and other rest sensors to the hue hub, except for 2 that only run once a day, and moved over to all core Hue sensors.

Which is a complete let down so far: where I saw only the hue lights go unavailable before (and all Custom integration sensors where rock solid, as they have always been), I now witness all these sensors go unavailable also! So this truly has nothing to do with the custom integration (though relieving the Hub couldn't hurt) and cause should be sought elsewhere.

really am tempted to revert the change but willing to persevere if another way-out can be found. Would love to stick to core integrations... but they should be functional

Now how to proceed.

Schermafbeelding 2020-03-06 om 23 19 29

Schermafbeelding 2020-03-06 om 23 19 04

and a few template sensors built on the core sensor binary...
Schermafbeelding 2020-03-06 om 17 03 53

fwiw, this is the production system, no manual editing in the source files on local dev. plain simple 106.5 Hassio

@Kugelfang666
Copy link
Author

that is perfectly in line whit what I saw. For me removing the custom integration also did not resolve the problem.

@Mariusthvdb
Copy link
Contributor

Is it correct we still see the fetching sensor error, after having disabled all core Hue sensors in the entities tab? I would have hoped to at least stop that from causing an error logged, but it apparently doesnt..

Schermafbeelding 2020-03-12 om 17 37 45

note the timing is different, where they previously appear 3 in a row

@azogue
Copy link
Member

azogue commented Mar 12, 2020

cc @balloob,

maybe those errors should be ignored most of the times, I just discovered how easy it is to generate them, and what is happening really:

  • Note1: I'm on dev, and working on custom huesensor, so the text on error messages is slightly different

  • Note2: The Timeout fetching sensor data error was generated by physically disconnecting the ethernet cable 1 second and reconnecting again :)

2020-03-12 18:27:02 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:02.000531+00:00
2020-03-12 18:27:03 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:03.002715+00:00
2020-03-12 18:27:04 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:04.001065+00:00
2020-03-12 18:27:06 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:06.005077+00:00
2020-03-12 18:27:07 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:07.003826+00:00
2020-03-12 18:27:08 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:08.000978+00:00
2020-03-12 18:27:09 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Timeout fetching sensor data
2020-03-12 18:27:09 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:05.000542+00:00
2020-03-12 18:27:09 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:09.000580+00:00
2020-03-12 18:27:10 DEBUG (MainThread) [custom_components.huesensor.remote] Update requested at 2020-03-12 17:27:10.004379+00:00
  • Update process is kicking in each second, as expected.
  • Timeout in data coordinator is of 4 secs.
  • Request for '17:27:05' is the one that fails, 4 seconds after being called, at '18:27:09'.
  • But meanwhile, requests for '17:27:06', '17:27:07' and '17:27:08' were successful, and bridge data was updated on the time the error is logged.

IMHO we could totally ignore (or at least decrease the log level) these request errors in those situations, and only log 'real bridge disconnects' (> timeout without success). I imagine that A LOT of them would disappear.

@balloob
Copy link
Member

balloob commented Mar 12, 2020

Requesting an update is not actually updating the data.

@Mariusthvdb
Copy link
Contributor

@azogue wrote:

only log 'real bridge disconnects'

Yes, that would be something most of the HA community Hue users ask for, since a very long time indeed... just one of the many posts on the unavailability
Btw, for your info: this is when it all started....

@azogue
Copy link
Member

azogue commented Mar 12, 2020

Requesting an update is not actually updating the data.

I know, but I was talking about checking if another call does the update request successfully while the current failed one gets the timeout exception. It is better to show it: #32751

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Mar 14, 2020

Marius, can you try disabling all your resources. I wonder if one of your custom cards is bashing the backend.

I did find 1 card to cause definite trouble in the end. Not saying taking it out solves all errors, but having this on my test page along with some nifty Hue lights auto rendering:

  - type: custom:auto-entities
    card:
      type: entities
      title: Multiple lights
#      show_header_toggle: false
    show_empty: false
    filter:
      include:
        - domain: light
          state: 'on'
          attributes:
            rgb_color: '! none'
          options:
             type: custom:multiple-entity-row
             toggle: true
             secondary_info: last-changed
             entities:
               - entity: this.entity_id
                 attribute: brightness
                 name: Bri
                 unit: '%'
               - entity: this.entity_id
                 attribute: rgb_color
                 name: Rgb

causes these lights to constantly go unavailable. Not sure if it is the Lovelace page, or the backend causing timing issues or what have you, but still, for reference reporting it here:

#      - type: iframe
#        style: |
#          ha-card {
#            overflow: hidden;
#            padding: 0px;
#          }
#        aspect_ratio: 90%
#        url: https://gadgets.buienradar.nl/gadget/zoommap/?lat=5xxx3&lng=4.xxx&overname=2&zoom=13&naam=City&size=3b&voor=1

didn't make a difference if I took out styling or not, is was the buienradar iframe gadget causing trouble.

@qJake
Copy link

qJake commented Apr 6, 2020

Just wanted to chime in, I'm having the same issue. It's quite annoying when my Hue integration is "Unavailable" quite often during a 24h period, example:

image

I have one Hue v2 bridge and about 20 bulbs. No third party stuff, no other Philips products like blooms or strips or anything like that.

These are the errors I'm seeing, in chronological order (oldest first).


Log Details (ERROR)

Logger: homeassistant.components.hue.sensor_base
Source: helpers/update_coordinator.py:126
Integration: hue
First occurred: 8:23:04 PM (1 occurrences)
Last logged: 8:23:04 PM

Error requesting sensor data: None

Log Details (ERROR)

Logger: homeassistant.components.hue.light
Source: helpers/update_coordinator.py:126
Integration: hue
First occurred: 8:23:00 PM (2 occurrences)
Last logged: 8:23:04 PM

  • Error requesting group data: None
  • Error requesting light data: None

Log Details (ERROR)

Logger: homeassistant.components.hue.bridge
Source: components/hue/bridge.py:131
Integration: hue
First occurred: 8:23:00 PM (4 occurrences)
Last logged: 8:23:07 PM

Request failed 3 times, giving up.

@atechnical
Copy link

Same issue on Home Assistant 0.108.3
Errors in chronological order below.
I am using a Conbee 2 to integrate some Sengled bulbs if it matters.

Log Details (ERROR)
Logger: homeassistant.components.hue.bridge
Source: components/hue/bridge.py:131
Integration: hue (documentation, issues)
First occurred: 8:17:00 PM (82 occurrences)
Last logged: 10:28:06 PM

Request failed 3 times, giving up.

Log Details (ERROR)
Logger: homeassistant.components.hue.light
Source: helpers/update_coordinator.py:133
Integration: hue (documentation, issues)
First occurred: 8:16:28 PM (13 occurrences)
Last logged: 10:27:13 PM

Timeout fetching light data

Log Details (ERROR)
Logger: homeassistant.components.hue.sensor_base
Source: helpers/update_coordinator.py:133
Integration: hue (documentation, issues)
First occurred: 8:16:24 PM (13 occurrences)
Last logged: 10:27:13 PM

Timeout fetching sensor data

Logger: homeassistant.core
Source: components/hue/bridge.py:124
First occurred: 8:17:00 PM (2 occurrences)
Last logged: 8:17:01 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 962, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 949, in create_connection
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 473, in sock_connect
return await fut
File "/usr/local/lib/python3.7/asyncio/selector_events.py", line 503, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.121', 80)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1255, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 412, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 600, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 443, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 243, in async_handle_light_on_service
await light.async_turn_on(**params)
File "/usr/src/homeassistant/homeassistant/components/hue/light.py", line 399, in async_turn_on
partial(self.light.set_state, **command)
File "/usr/src/homeassistant/homeassistant/components/hue/bridge.py", line 124, in async_request_call
return await task()
File "/usr/local/lib/python3.7/site-packages/aiohue/lights.py", line 117, in set_state
json=data)
File "/usr/local/lib/python3.7/site-packages/aiohue/bridge.py", line 63, in request
async with self.websession.request(method, url, json=json) as res:
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
timeout=real_timeout
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
req, traces, timeout)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 986, in _create_direct_connection
req=req, client_error=client_error)
File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.1.121:80 ssl:None [Connect call failed ('192.168.1.121', 80)]

@qJake
Copy link

qJake commented Apr 16, 2020

0.108.5, still experiencing, but (at least for the past 24 hours) seems to be a little better:

image

Not sure why it's so random/sporadic.

@geekofweek
Copy link
Contributor

I was fighting this issue as well and did all kinds of troubleshooting. What I discovered was my Hue Hub was rebooting at regular intervals whenever it went offline in HA, which was about every hour. That meant it wasn't just HA that couldn't interact it was everything.

After a lot of digging what I discovered was that because I had the Hue Hub on another VLAN and mDNS reflecting on it was causing the Hue Hub to get overwhelmed and crash. I use all ubiquiti networks unifi equipment and this seems to be a well reported issue that happens with the Hue Hub. Moving to the mDNS repeater over the mDNS reflector immediately resolved the issue.

This probably won't help everyone, but it might help anyone with a similar setup.

@atechnical
Copy link

I also have Ubiquiti with VLANS and mdns. It's way more than I need and I'm still learning how to use it. Can you explain how you ..."Moving to the mDNS repeater over the mDNS reflector"? Thanks very much.

@geekofweek
Copy link
Contributor

This is a good forum post to get started. The short of it is you need to disable mDNS reflecting in the GUI and modify the config.gateway.json file on the controller. There is no GUI option for it and does not work on the Dream Machine line.

@qJake
Copy link

qJake commented Apr 16, 2020

I have a traditional single-mask LAN (192.168.0.*) and both my hub and the VM host that Home Assistant runs on are hard-wired (via the same switch) to the same router.

If my Hue Hub is in fact rebooting... how/where would I be able to tell this information?

@xeophin
Copy link

xeophin commented Apr 17, 2020

Seeing that the update_coordinator pops up in the error logs, it may be related to #33866?

@Kugelfang666
Copy link
Author

so I fully removed the CC in my setup. Moving forward im using the newly released events for the hue buttons. Unfortunately I still keep getting a lot of these Timeout fetching light data. Since I'm not using any special mDNS server or something I still wonder what might be causing this issue...

@Mariusthvdb
Copy link
Contributor

Mariusthvdb commented Apr 21, 2020

happy to report here, that apart from the issue at startup, the errors have completely gone..

did an update to 108.x, after which Hue became fully stable. What I also did was update the custom button card to version 3.3.0 +, which prevents updating all entities configured, and only updates changed entities.

Lastly, and I haven't tested this 100%, was to exclude the light domain in recorder/history.
Will enable that shorty to see if the error spamming will return.

All of this is with all Hue core sensors and lights (had sensors disabled before because they too became 'unavailable' all the time), and now even the Hue with events.

Goes without saying I only report here without any CC installed.

Can report that installing CC eventsensor by @azogue works very fine indeed, and does Not cause any harm.

All in all, happy camper here. #fingerscrossed...

@Kugelfang666
Copy link
Author

@Mariusthvdb

thanks for this! I can confirm removing the light domain from the recorder seems to have solved the issue for me!! This for me seems to be the actual solution after removing CCs and so one did not work!

@Mariusthvdb
Copy link
Contributor

Good to hear!
If this really solves it, I wish I had tried that some 2 years ago, ever since reporting hue going ‘unavailable’....

It would be an issue of true importance though, since of course we should be able to record our lights.

@balloob what would be your thoughts on this?

@Kugelfang666
Copy link
Author

Kugelfang666 commented Apr 21, 2020

hmmm after some initial euphony the error came back when I increased the polling interval, ill do some more systematic testing tomorrow

@balloob
Copy link
Member

balloob commented Apr 21, 2020

Wait till beta 109 hits and make sure that you make sure that you don't get any errors from integrations that do I/O in the event loop.

@Kugelfang666
Copy link
Author

for me the problem seems to be gone with 0.109! I updated yesterday and ever since not a single entry occurred!

@balloob balloob closed this as completed Apr 30, 2020
@Kugelfang666
Copy link
Author

updating the OS to 4.10 brought back the problem which before was entirely solved for me :-(

@Mariusthvdb
Copy link
Contributor

which is that (awaiting your report before updating...)?

@Kugelfang666
Copy link
Author

which is that (awaiting your report before updating...)?

Sry I don’t understand

@Mariusthvdb
Copy link
Contributor

which is the problem that you say is brought back?

@balloob
Copy link
Member

balloob commented Jun 8, 2020

Please do not continue discussions on closed issues but open a new issue instead.

@home-assistant home-assistant locked as resolved and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests