Since upgrading to HA 0.43.2, my Hue lights are not showing up anymore. The below message error shows in the log :
17-05-03 09:44:33 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 123, in setup_platform
setup_bridge(host, hass, add_devices, filename, allow_unreachable,
NameError: name 'allow_unreachable' is not defined
Any help to resolve this issue would be greatly appreciated!
Gio
dont know if this can help but after last update the discover option is not working for me and hue lights,ios,players, and all devices that were added in discovery mode so i had to add them manually and disable the discovery mode because it was giving me an error so that is working for me at this moment
What if you did not set it up in the config just let HA discover it automatically? That’s how it is for me currently and it is working properly.
Also, you mean 0.43.2 right? That’s the current version.
Hmmm…Here’s my experience. I was running .38.2. Upgraded to 43.2, HA doesn’t see any light. I then added the below and HA sees the lights (discovery is still in the config file). I do have the actual bridge. Previously in .38.2, I did not have the lines below in config.
Both. I run emulated hue so all devices are visible to Alexa and in conjunction with Homebridge for Homekit (iPhone). I have a physical hub (philips hue 3rd generation).
Everything used to work prior to upgrading to 0.43.2. I tried downgrading as well but the error message in the log is aways the same
17-05-03 22:37:29 WARNING (Thread-1) [homeassistant.components.emulated_hue] Alexa type is deprecated and will be removed in a future version
17-05-03 22:37:32 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 123, in setup_platform
setup_bridge(host, hass, add_devices, filename, allow_unreachable,
NameError: name 'allow_unreachable' is not defined
17-05-03 22:37:36 WARNING (MainThread) [homeassistant.setup] Setup of binary_sensor is taking over 10 seconds.
17-05-03 22:37:37 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
17-05-03 22:37:38 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
17-05-03 22:37:41 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform ring is taking over 10 seconds.
17-05-03 22:38:54 WARNING (Thread-7) [netdisco.ssdp] Found malformed XML at http://192.168.1.29:9080: status=ok
17-05-03 22:38:59 WARNING (Thread-7) [netdisco.ssdp] Error fetching description at http://192.168.0.254:49152/wps_device.xml
17-05-03 22:39:02 ERROR (Thread-10) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 113, in run_setup
destination, options)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 146, in __init__
self._client = googlemaps.Client(api_key, timeout=10)
AttributeError: 'module' object has no attribute 'Client'
17-05-03 22:39:02 ERROR (Thread-10) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 113, in run_setup
destination, options)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 146, in __init__
self._client = googlemaps.Client(api_key, timeout=10)
AttributeError: 'module' object has no attribute 'Client'
17-05-03 22:39:02 ERROR (Thread-10) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 113, in run_setup
destination, options)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 146, in __init__
self._client = googlemaps.Client(api_key, timeout=10)
AttributeError: 'module' object has no attribute 'Client'
17-05-03 22:39:02 ERROR (Thread-10) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 113, in run_setup
destination, options)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/google_travel_time.py", line 146, in __init__
self._client = googlemaps.Client(api_key, timeout=10)
AttributeError: 'module' object has no attribute 'Client'
17-05-03 22:39:02 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 103, in setup_platform
host = urlparse(discovery_info[1]).hostname
KeyError: 1
17-05-03 22:39:03 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/hue.py", line 103, in setup_platform
host = urlparse(discovery_info[1]).hostname
KeyError: 1
I’m afraid I have no experience to draw on with the Emulated Hue component. You might want to look at these github issues to see if something is related. The link below will show only emulated hue issues.
Thanks anyway @rpitera. I don’t think however that the issue is related to the Emulated Hue component since that works for all my other devices (switches, sensors, media players). They all in fact work fine with Alexa and Siri. I think it’s specifically related to the Hue Bridge.
Hi @anon35356645, apologies for the massive delay in getting back to you, I have been super busy with work lately. I did eventually solve the above issue after physically resetting the Hub.