Hue lights not appearing

I don’t know whats going on but all my hue lights are no longer discovered. I’ve manually added the component with the ip address but they are still not appearing. I’ve seen this error which is the only thing I can see related to hue:

Update for light.kitchen fails
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity.py”, line 199, in async_update_ha_state
yield from self.async_device_update()
File “/usr/src/app/homeassistant/helpers/entity.py”, line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 332, in iter
yield self # This tells Task to wait for completion.
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 250, in _wakeup
future.result()
File “/usr/local/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/light/hue.py”, line 467, in update
self.update_lights(no_throttle=True)
File “/usr/src/app/homeassistant/util/init.py”, line 306, in wrapper
result = method(*args, **kwargs)
File “/usr/src/app/homeassistant/util/init.py”, line 306, in wrapper
result = method(*args, **kwargs)
File “/usr/src/app/homeassistant/components/light/hue.py”, line 213, in update_lights
all_lights = bridge.get_group(0)
File “/usr/local/lib/python3.6/site-packages/phue.py”, line 1065, in get_group
return self.request(‘GET’, ‘/api/’ + self.username + ‘/groups/’ + str(group_id))
File “/usr/local/lib/python3.6/site-packages/phue.py”, line 663, in request
result = connection.getresponse()
File “/usr/local/lib/python3.6/http/client.py”, line 1331, in getresponse
response.begin()
File “/usr/local/lib/python3.6/http/client.py”, line 297, in begin
version, status, reason = self._read_status()
File “/usr/local/lib/python3.6/http/client.py”, line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
File “/usr/local/lib/python3.6/socket.py”, line 586, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

Any ideas what might be going wrong?

Did you “configure” it after adding manually?

After adding it, you should see a “box” on the website where you can “Configure” the Hue component. Configure here means you have to press the button on the Hue hub.

It was already configured which is why I guess it didn’t show up. I’ll remove the config file and do it again.

ok, turns out they are being found, they just arent showing up in my groups… odd.

Ok - it was because I was using custom ui! Fixed now!