Philips Hue problems

Hi all - loving HA but Hue is driving me nuts…I’ve got several hue bulbs and a few groups set up. I’m running hass as a daemon on an rPI3 wifi (and I’ve also tried ethernet)…problem is that no matter what, my logs are being flooded with what looks like a semi repeating issue. Starts with “Cannot reach hub”, then a load of Python errors, mostly (though not always!) ending with OS Error 101 Network not available…this then repeats continuously every 90s or so, although that interval varies.

When it happens, the network is most definitely available in that I can ssh in just fine and ping internal and external hosts without problems. Both the hue hub and the pi are sitting on static IPs on Ubiquiti Unifi kit so I’m pretty sure that the network is rock solid.

Strangely, all the bulbs seem to respond to commands even after the errors

I’ve stripped down the config to include only hue, a bluetooth presence sensor, 4 x lifx lights and an LG tv - strangely, ALL of these report taking over 10s to update, so I’m wondering if they’re causing hue to struggle or vice versa…

Anyone have any ideas or things to try?

I would be usefull to get some more info on your configuration, HA version, part of the log, etc. I assume the other components take >10 to update only after a restart?

Could be because you’re using Hue Groups. Quite a few of us are having an issue with this, awaiting a fix…

Hey there, thanks for the quick reply :)…
I’m Running latest 0.53.0 (Running in a python venv if that’s significant) version, and no the >10 s updates are continuous both on startup for setup and afterwards for updates - see a cropped part of my logs below (That’s the first few lines of MANY after a clean restart…

I’m just in the process of setting up a windows box to see if it’s rPi related so will report back if there’s any difference - I’d switch to windows but Lifx support is lacking as I understand it on windows

2017-09-26 11:37:09 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds. 2017-09-26 11:37:38 ERROR (Thread-4) [homeassistant.components.light.hue] Cannot reach the bridge Traceback (most recent call last): File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 180, in update_lights api = bridge.get_api() File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 838, in get_api return self.request('GET', '/api/' + self.username) File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 651, in request connection.request(mode, address) File "/usr/lib/python3.4/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request self.endheaders(body) File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders self._send_output(message_body) File "/usr/lib/python3.4/http/client.py", line 924, in _send_output self.send(msg) File "/usr/lib/python3.4/http/client.py", line 859, in send self.connect() File "/usr/lib/python3.4/http/client.py", line 836, in connect self.timeout, self.source_address) File "/usr/lib/python3.4/socket.py", line 509, in create_connection raise err File "/usr/lib/python3.4/socket.py", line 500, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable 2017-09-26 11:37:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.lifx__strip is taking over 10 seconds 2017-09-26 11:38:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.hue_ambiance_candle_3 is taking over 10 seconds 2017-09-26 11:38:50 ERROR (Thread-4) [homeassistant.components.light.hue] Cannot reach the bridge Traceback (most recent call last): File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 180, in update_lights api = bridge.get_api() File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 838, in get_api return self.request('GET', '/api/' + self.username) File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 663, in request result = connection.getresponse() File "/usr/lib/python3.4/http/client.py", line 1172, in getresponse response.begin() File "/usr/lib/python3.4/http/client.py", line 351, in begin version, status, reason = self._read_status() File "/usr/lib/python3.4/http/client.py", line 313, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.4/socket.py", line 371, in readinto return self._sock.recv_into(b) socket.timeout: timed out 2017-09-26 11:38:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.lifx__strip is taking over 10 seconds 2017-09-26 11:39:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.lounge_tv is taking over 10 seconds 2017-09-26 11:40:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.lounge_tv is taking over 10 seconds 2017-09-26 11:40:44 ERROR (Thread-3) [homeassistant.components.light.hue] Cannot reach the bridge Traceback (most recent call last): File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 180, in update_lights api = bridge.get_api() File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 838, in get_api return self.request('GET', '/api/' + self.username) File "/srv/homeassistant/lib/python3.4/site-packages/phue.py", line 651, in request connection.request(mode, address) File "/usr/lib/python3.4/http/client.py", line 1090, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request self.endheaders(body) File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders self._send_output(message_body) File "/usr/lib/python3.4/http/client.py", line 924, in _send_output self.send(msg) File "/usr/lib/python3.4/http/client.py", line 859, in send self.connect() File "/usr/lib/python3.4/http/client.py", line 836, in connect self.timeout, self.source_address) File "/usr/lib/python3.4/socket.py", line 509, in create_connection raise err File "/usr/lib/python3.4/socket.py", line 500, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable 2017-09-26 11:40:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.lifx__strip is taking over 10 seconds 2017-09-26 11:41:15 WARNING (MainThread) [homeassistant.components.light] Updating lifx light took longer than the scheduled update interval 0:00:clock1030:

I have no idea really… Doesn’t look like the hue_group issue but just in case you could add allow_hue_groups: false to your config.

If that doesn’t solve the issue I would first update HA (current version is 0.54) and remove the bluetooth tracker. See if that solves it. I had several issues with Bluetooth devices (including the >10 second warnings) so I moved them to a separate PI and use MQTT to interface them with HA.

Woah, can you explain how you’re doing this?

To be honest I do not rember… But it works :joy: I have a seperate Pi Zero and think I used this script: https://github.com/ThomDietrich/miflora-mqtt-daemon

I searched and found this as I found it’s the bluetooth addon causing philips hue to go unavailable and have a huge lag. Just thought I’d add that in case anyone finds lands here upon searching.

any insight to the bluetooth issue? I’m having similar issues.

Bluetooth addon for what? I’m running HA on a NUC with docker.

Thanks!