2018-04-15 00:18:12 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 82, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py”, line 56, in async_setup_platform
bridge = hass.data[hue.DOMAIN][discovery_info[‘host’]]
KeyError: ‘host’
My configuration is very simple
hue:
bridges:
- host: 192.168.1.80
To try some solutions i deleted the phue file, but when I restart the Hue configuration does not appear.
What to do?
Look under configuration panel. Hue has been moved to config entries. You can also check the config entry.yaml
I had to remove the “-” in front of host:
to get things working. Others deleted the content of the deps folder.
Where? I can’t see it
I try removing the -
But documentation says to put it. Deps folder cancelling???
Edit, after removing the -
2018-04-15 14:32:55 ERROR (MainThread) [homeassistant.config] Invalid config for [hue]: expected a list for dictionary value @ data[‘hue’][‘bridges’]. Got OrderedDict([(‘host’, ‘192.168.1.80’)]). (See /config/configuration.yaml, line 334). Please check the docs at https://home-assistant.io/components/hue/
2018-04-15 14:32:55 ERROR (MainThread) [homeassistant.setup] Setup failed for hue: Invalid config.
entry.yaml?
I don’t have it
2018-04-15 14:37:21 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 82, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/site-packages/homeassistant/components/light/hue.py”, line 56, in async_setup_platform
bridge = hass.data[hue.DOMAIN][discovery_info[‘host’]]
KeyError: ‘host’
2018-04-15 14:37:21 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform maxcube
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 77, in async_setup
None, platform.setup_platform, hass, platform_config,
Sorry it’s .config_entries.json.
But from your logs its apparent that there is something wrong in how you specify your configuration from what it expects.
To go the config entry route you go through configuration -> integrations -> hue
Im getting:
Error while setting up platform hue
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
conn = self._new_conn()
File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
Any ideas?
May not be the same issue. But I solved deleting a custim_compknent related with hue
lol thats not my hue sensors CC is it?
Might be, but was long since I didn’t update it
For me the culprit indeed was your CC (I got exactly the same error as described in post #1).
My solution was to delete hue.py
from custom_components
and update hue.py
in custom_components/sensors
with the current content from your github repo
Cheers and many thanks for your great work!