arraylabs / pymyq

Python wrapper for MyQ API
MIT License
112 stars 42 forks source link

API Login Issues 2019-10-18 #25

Closed brbeaird closed 4 years ago

brbeaird commented 4 years ago

It seems MyQ may have made some changes again today. I'm unable to get a successful login response from either the v4 or v5 endpoints. Anyone else having better luck?

V4 Response: image

V5 Response: image

itzalgd24 commented 4 years ago

same here. came home to it not working. multiple errors in my logs. Client error while requesting data from API...yada yada. they changed their API again!

txwindsurfer commented 4 years ago

My integration also broke today.

brbeaird commented 4 years ago

Correction to my original post: the V5 endpoint IS working if you use the correct AppID. See here for what I posted last time this happened: https://github.com/arraylabs/pymyq/issues/22#issuecomment-518861064

I believe this PR may fix the issue: #23

towerhand commented 4 years ago

myq is totally broken for me atm.

brianjamescarter commented 4 years ago

Hello @brbeaird let me know if you are successful with PR #23 . I am getting an invalid username and password error using it, and I am not sure where the web request is getting it wrong.

brbeaird commented 4 years ago

I'll give it a shot when I can. Spent most of yesterday updating my SmartThings integration, and it's working again, so I know V5 is still up and running.

Just taking a quick read through the PR, everything seems correct. One thing I've noticed lately is I believe there's just one valid AppID (or brand mapping), so make sure you're using liftmaster as the brand. At some point, we should probably just pull the others out.

I'll take a closer look whenever I get a chance.

brianjamescarter commented 4 years ago

Interesting, I am not so sure about the one valid AppID, v5 was working for me using Chamberlain in August. but now it does not work with either Chamberlain or liftmaster. Thanks again @brbeaird for looking into this, since you got it working with smartthings it gives me hope I will find a solution with HomeAssistant

https://github.com/arraylabs/pymyq/issues/22 temporary solution here!

bachya commented 4 years ago

@brianjamescarter FYI, in case you're not already aware, we're closing in on a HASS solution in #23. 👍

TomBrandt commented 4 years ago

So what is the verdict? Since they won't allow third parties without an paying for it and reverse engineering seems to be a dead issue.

brianjamescarter commented 4 years ago

@bachya the good news for me is I am not using HASS.io I am using the Docker install on a linux server, so everything is working again for me. Thank you for all your work!

ckhyatt commented 4 years ago

This was working flawlessly and stopped again this afternoon. HA restart does not resolve. I fear Chamberlain is making changes again... It works in the native MQ app.

ckhyatt commented 4 years ago

Error while setting up platform myq Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), 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 53, in async_setup_platform myq = await login(username, password, websession) File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 162, in login await api.authenticate(username, password) File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 117, in authenticate login_request=True, File "/usr/local/lib/python3.7/site-packages/pymyq/api.py", line 85, in request data = await resp.json(content_type=None) File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1040, 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)

codypet commented 4 years ago

I too am having the same issue.