Hi
I have been searching for a while and cannot find an example of anyone getting hass to talk to ha-bridge
I want hass to discover my ha-bridge and “import” the lights so I can setup some automatons
the hass log shows it found the bridge but errors (log below)
Is it possible to even do this or an I barking up the wrong tree?
2017-06-03 00:30:45 INFO (Thread-10) [phue] Error opening config file, will atte mpt bridge registration
2017-06-03 00:30:45 INFO (MainThread) [homeassistant.loader] Loaded media_player .plex from homeassistant.components.media_player.plex
2017-06-03 00:30:45 INFO (MainThread) [homeassistant.loader] Loaded media_player .samsungtv from homeassistant.components.media_player.samsungtv
2017-06-03 00:30:45 INFO (MainThread) [homeassistant.components.media_player] Se tting up media_player.plex
2017-06-03 00:30:45 ERROR (MainThread) [homeassistant.components.light] Error wh ile setting up platform hue
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_comp onent.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 "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/hu e.py", line 138, in setup_platform
allow_in_emulated_hue, allow_hue_groups)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/hu e.py", line 149, in setup_bridge
config_file_path=hass.config.path(filename))
File "/home/pi/.homeassistant/deps/phue.py", line 629, in __init__
self.connect()
File "/home/pi/.homeassistant/deps/phue.py", line 753, in connect
self.register_app()
File "/home/pi/.homeassistant/deps/phue.py", line 707, in register_app
response = self.request('POST', '/api', data)
File "/home/pi/.homeassistant/deps/phue.py", line 666, in request
return json.loads(str(result.read(), encoding='utf-8'))
File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)