Core: Error while setting up myQ in 0.96.5

Created on 6 Aug 2019  Â·  14Comments  Â·  Source: home-assistant/core

Home Assistant release with the issue:

0.96.5

Last working Home Assistant release (if known):
0.96.5

Operating environment (Hass.io/Docker/Windows/etc.):

Docker on Ubuntu 18.04
Component/platform:

MyQ
Description of problem:
I haven't updated or made any changes since yesterday, and it began to stop working this morning. I can't connect to the garage door through HA, but I'm able to connect to it via the myQ app. Could it be a change in their API?

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

platform: myq
username: !secret myq_username
password: !secret myq_password
type: chamberlain

Traceback (if applicable):

Error while setting up platform myq
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
    myq = await login(username, password, brand, websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
    await self._get_security_token()
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
    return await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Additional information:

myq problem in dependency

Most helpful comment

Update for everyone: I've submitted a PR to pymyq that updates it to work with the new API. Once it's done, I'll submit a HASS PR.

All 14 comments

I have the same issue.

2019-08-06 09:17:41 ERROR (MainThread) [homeassistant.components.cover] Error while setting up platform myq
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
    myq = await login(username, password, brand, websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
    await self._get_security_token()
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
    return await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I am also having the same issue... must have been a change on MyQ side again :(

Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
    myq = await login(username, password, brand, websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
    await self._get_security_token()
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
    return await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Also running into this as well. Anyone running into this that isn't using the myQ platform specifically? For instance, is Chamberlain and Liftmaster still working properly?

Error while setting up platform myq
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/myq/cover.py", line 43, in async_setup_platform
    myq = await login(username, password, brand, websession)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 293, in login
    await api.authenticate(username, password)
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 228, in authenticate
    await self._get_security_token()
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 244, in _get_security_token
    login_request=True,
  File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 153, in _request
    return await resp.json(content_type=None)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
    return loads(stripped.decode(encoding))
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Myq app works fine.

mine isn't working on HA:

I'm on 0.96.5:

Mine stopped working this morning too.....

I'm on type: liftmaster

Same issue here as well.
I am using version 0.96.2.
I am using the type: chamberlain

The official app still functions, They must have updated their API again.

There are issues open now, both here and in "pymyq" which handles the API login for the MyQ devices. It looks like Chamberlain has changed there webservice call that the API was using, and until someone in pymyq is able to update to the latest call (depending on the change) the integration with HomeAssistant will remain broken. Through some love their way, as they keep this integration running.

P.s. I am considering ditching MyQ in favour of a DIY solution that does not change its API every three months.

Thanks to everyone on the dev team here and on pymyq!

Brian C.

I have the same problem this morning. :(

Type is "liftmaster" for me and using HA 0.96.5.

Paul

I have same problem since 11 hrs ago and have not updated or anything,pretty sure it is on myq side. The component has always had errors about timing out but always worked fine for over a year now through several releases. I am on 0.95.0 Hassio. I also use the myq app and it works fine. Bet they shut down there api like harmony did. Hope not! I will wait patiently for someone way smarter than me to figure it out. Wooops , skimed over the thread and missed the post above , looks like i was right. By the way I have the myq hub, app,and 2 doors if i can help the devs out in any way i would be glad to!

I have the same issue

For reference and linking, here is the open issue with pymyq: https://github.com/arraylabs/pymyq/issues/22

Update for everyone: I've submitted a PR to pymyq that updates it to work with the new API. Once it's done, I'll submit a HASS PR.

This appears to have fixed itself. I guess it was a server outage or someone at Chamberlain decided to undo some changes.

Agreed with @Villhellm – everyone seems to be back online. Going to close this as an active bug; we're still working to have https://github.com/arraylabs/pymyq/pull/23 incorporated to future-proof things a tad.

Was this page helpful?
0 / 5 - 0 ratings