Lifx Cloud not connecting following 0.93.1 update

Hi guys, this is my first post after a couple weeks of loving hass.io :slight_smile:

I’ve just upgraded to 0.93.1 (from 0.93.0) and my Lifx scenes are no longer working. In the logs i’m seeing this:

2019-05-21 15:36:31 WARNING (MainThread) [homeassistant.components.upnp] Wanted UPnP/IGD device with UDN "uuid:0a86b0cc-3498-4061-a549-c9e7b0a17eda" not found, aborting
2019-05-21 15:36:31 ERROR (MainThread) [homeassistant.components.lifx_cloud.scene] Error on https://api.lifx.com/v1/scenes
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 955, in _create_direct_connection
    traces=traces), loop=self._loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 825, in _resolve_host
    self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/resolver.py", line 30, in resolve
    host, port, type=socket.SOCK_STREAM, family=family)
  File "uvloop/loop.pyx", line 1464, in getaddrinfo
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/lifx_cloud/scene.py", line 42, in async_setup_platform
    scenes_resp = await httpsession.get(url, headers=headers)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 476, in _request
    timeout=real_timeout
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 522, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 854, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 959, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.lifx.com:443 ssl:None [Try again]

The most suspicious line is in my experience usually the last one, with it trying to connect on an SSL port but not using SSL. If this is indeed the issue, do you know how to make it force SSL for this?

I did downgrade back to 0.93.0 and they worked again, but obviously this isn’t ideal!

Any help much appreciated :slight_smile:

If it works in 0.93.0 but not 0.93.1 create an issue:

Sorry, didn’t know the first place to turn. Created the issue now https://github.com/home-assistant/home-assistant/issues/24017

No need for apologies. It’s always wise to check here or discord first, before raising an issue. If you can reproduce the fault in one version of HA and it goes away by reverting to an earlier version it could be due to a breaking change. There were none listed for lifx, so it’s definitely an issue.

1 Like

So one of the codeowners for Lifx_Cloud responded, saying that he suspected as network (DNS) related issue. I did have a double NAT situation happening in my home, which has never caused any issues with port forwarding etc, however I have never gone so deep with SSL certification as I have with hassio.

So I decided to turn my ISP’s router into bridge mode, thus eliminating the double NAS, then performed the upgrade to 0.93.1 and lo and behold Lifx Cloud connects fine.

Very strange as for sure it worked in 0.93.0.

1 Like

This is my first post on this forum, but thought I would add.

I also have double NAT (ISP router and Google Wifi)
As well as DuckDNS dyn DNS with SSL

I can confirm I also got this error and resolved it by setting Google Wifi as DMZ, will check if it keeps working after setting it back but thought I would add this info.