LIFX integration breaks Hass.io - how to revert?

The LIFX platform has been stopping Hassio for booting for a while so haven’t been using it. Tried again in 0.81 with the new LIFX integration but causes same issue - errors below.
Previously, I could just comment the LIFX platform out of my config - what’s the equivalent when its done through the integrations interface (which I now can’t get to)? Do I just remove the LIFX entries from core.config_entries, core.device_registry and core.entity_registry?

Thanks

Error I’ve been getting in logs for LIFX is:
ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/aiolifx/aiolifx.py”, line 279, in try_sending
self.transport.sendto(msg.packed_message)
File “uvloop/handles/udp.pyx”, line 157, in uvloop.loop.UDPTransport.sendto
AttributeError: ‘uvloop.loop.UDPTransport’ object has no attribute ‘_address’

I think removing it from core.config_entries should be enough.

However, it would be better to get that error fixed. Do you have an advanced network setup that could make it fail?

Is that the only error that you get?

Hi, thanks for the reply
Yeah that’s the full error in log. Nothing fancy in my network - Raspberry Pi 3 running only HA, ethernet connected into standard Huawei router and Unifi AP. Not even running DuckDNS or anything (waiting for HA Cloud to handle remote access)

Interestingly, seems to work first time that a fresh HA install is used, but once I restart it bricks HA and returns that error…

Do you have both ethernet and wifi active in Hass.io?

Did you try with static configuration for LIFX?

lifx:
  light:
    server: IP_ADDRESS
    broadcast: IP_ADDRESS

Ethernet only I believe (never configured RPi for wifi).
Didn’t try the static configuration - and don’t believe I can use the platform config now since the integration was launched in 0.81?

The above works for 0.81 and will disable discovery.

I don’t see why it would help with your issue but it’s worth a shot.

Thanks mate, will have a try this weekend with that…

Thanks for the idea but same error:

ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/aiolifx/aiolifx.py”, line 279, in try_sending
self.transport.sendto(msg.packed_message)
File “uvloop/handles/udp.pyx”, line 157, in uvloop.loop.UDPTransport.sendto
AttributeError: ‘uvloop.loop.UDPTransport’ object has no attribute ‘_address’

Using config of

lifx:
light:
server: 192.xxx.1.64
broadcast: 192.xxx.1.255

@amelchio - any chance recent fixes around aiolifx will have addressed this? Just notice you are a contributor on Github for this stuff (and thanks for that!)

Afraid not. I have no idea why you get this error so I cannot address it.

1 Like