17-01-21 19:03:22 homeassistant.components.light: Error while setting up platform lifx
Traceback (most recent call last):
File “/srv/homeassistant/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/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py”, line 50, in setup_platform
lifx_library = LIFX(add_devices, server_addr, broadcast_addr)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/lifx.py”, line 72, in init
broadcast_addr)
File “/home/homeassistant/.homeassistant/deps/liffylights.py”, line 100, in init
self._sock.bind((listener_addr, UDP_PORT))
OSError: [Errno 98] Address already in use
17-01-21 19:03:24 yahooweather: Fetch no weather data Yahoo!
17-01-21 19:03:24 homeassistant.components.sensor.yweather: Can’t retrieve weather data from yahoo!
Same issue here.
I have 8 Lifx bulbs on my wifi network, but none of them show up in HA, while the component gives no errors.
This makes me wonder, as Lifx bulbs individually connect to the net, what is the server mentioned in the component config?
# Example configuration.yaml entry
light:
- platform: lifx
server: 192.168.1.10
A little more information is needed to diagnose your issue. Which server OS are you using (macOS, Windows, Linux)? Do you have a special network setup?
The server value is only relevant If your HA server has more than one IP address.
I have 4 LIFX lights on my network, all have worked perfectly since the first time I set up HASS. This is my config in lights.yaml
- platform: lifx
broadcast: 192.168.1.255
My router IP is 192.168.1.1, so the broadcast address is your router IP, with 255 at the last digit set. All bulbs needs to be set up and working in the LIFX app first obviously.
Thanks. Gave the broadcast parameter a shot adjusted to my network, but to no avail. The bulbs are otherwise happily controllable from the app and from the node-lifx npm module.