Difficulties with HA cloud connect since 0.64!

Hi

I just updated my HA from 0.63.3 to 0.64. I had to relogin to HA cloud but had lost password ! I tried the reset feature in web interface but went into errors. Nevertheless I still received an email with the code to reset password which I did.
Now when I try to login I get an unknown error and logs have these:

Log Details (ERROR)

Mon Feb 26 2018 08:10:28 GMT+0100 (CET)

Error handling request

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 416, in start
    resp = yield from self._request_handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 70, in staticresource_middleware
    return (yield from handler(request))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 28, in real_ip_middleware
    return (yield from handler(request))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 70, in ban_middleware
    return (yield from handler(request))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 29, in auth_middleware
    return (yield from handler(request))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 409, in handle
    result = yield from result
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 50, in error_handler
    result = yield from handler(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/data_validator.py", line 48, in wrapper
    result = yield from method(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 83, in post
    data['password'])
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 124, in login
    cognito = _authenticate(cloud, email, password)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 154, in _authenticate
    assert not cloud.is_logged_in, 'Cannot login if already logged in.'
AssertionError: Cannot login if already logged in.

Interesting to see that logs indicate I’m already logged in but on frontend I appear not ! Then I navigated into web interface to go to main tab and back at configuration one and now I appear correctly logged !!

Vincèn

  1. If you already have recover your password. Try from login alexa app>home assistant skill , to see if your password is correct. Doesn’t matter discover or not discover device. Just to check your user pass is ok now.
  2. delete folder cloud from your HA configuration folder and also put #cloud: from your configuration.yaml and restart your HA.
  3. After restart your HA. back to configuration.yaml remove # away from cloud: to activate cloud: again. And restart your HA.
  4. At HA frontend>configuration> log in to cloud. After you see connected. Go back to your alexa app and check if your devices can be seen. If can be seen but with (offline) at the back of each devices. Go for discover devices again.

Thanks for suggestion but gave up on that for now ! Still trying to get a working HA without bunch of errors in logs and components full of error :frowning: