Phillips HUE not working with 0.37?

After upgrading to 0.37, my HUE lights are not loading. I use the default method of discovery to connect/load to HUE. I checked the log and this is what happens on restart of HA.

17-01-29 08:38:43 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 151, in _async_setup_platform
entity_platform.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/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 128, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/light/hue.py”, line 139, in setup_bridge
config_file_path=hass.config.path(filename))
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1107, in path
return os.path.join(self.config_dir, *path)
File “/srv/hass/hass_venv/lib/python3.4/posixpath.py”, line 79, in join
if b.startswith(sep):
AttributeError: ‘NoneType’ object has no attribute ‘startswith’

Any ideas how to fix?

exactly same issue here, something is broken with hue support in 0.37

Thank god I am not using hue haha. Though I was thinking of buying some ;).

Could you try to add filename: phue.conf in the config?

Wouldn’t that require that I actually create a HUE section? I am using the discovery mode now to bring in my HUE lights. How would I add this without a dedicated section? Im not all that savy on the configs yet.

Ahh, then I understand where the bug is. Will try to make bug fix.

1 Like

Thanks for the prompt attention to this!

all working here, I added before upgrading type

emulated_hue:
  host_ip: 192.168.1.239
  type: alexa

You can try to apply this fix: https://github.com/home-assistant/home-assistant/compare/dev...hue_fix?quick_pull=1

@anon35356645
emulated_hue is not related to this.

Fixed adding in the configuration.yaml:

light:
platform: hue
host: 192.168.xxx.xxx

It looks like only the autodiscovery is broken

@Danielhiversen, thank, I was going to try the fix you linked to, not sure how to apply it, linux/git newby here. I can’t even find the location of that file:(

@acario, thanks, I will try the manual method. Did you have to comment out discover?

no, you don’t have to comment out discover, just ad the light section for the hue platform.