MyQ 403 Auth Errors after 2023.9

It looks like Lash-L just pulled the .zip package from GitHub… does anyone else have a link that the wget command can grap the .zip from?

Thank you!

EDIT: Nevermind… this single command pasted (SHIFT + INSERT) into the Advanced SSH & Terminal add-on (in “unprotected” mode) fixed the issue after a HA restart:

docker exec -it homeassistant sed -i.bak "34s/None/str(\"ha${RANDOM}\")/" /usr/local/lib/python3.11/site-packages/pymyq/request.py
2 Likes

You changed the useragent from None to ha${RANDOM}. Is it the empty useragent that causes the issue? – never mind found the answer. I hope the myq integration owner fixes this soon.

P.s. This worked. Thanks!

Anyone running HAOS have the new wget link

as someone stated above it looks like it got pulled… Not sure why… But now I can’t fix it.

2 Likes

Hello everyone - it was pulled as I have rebuilt the repository in an organization on github so that I could make changes to the repository as it seems the original repository is dead.

You could use this as a new wget link: https://github.com/Python-MyQ/Python-MyQ/archive/refs/heads/master.zip

But 2023.10 will have an official fix

4 Likes

Is this still working for everyone? Seems I am seeing errors again.

Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/Account/LoginWithEmail?returnUrl=/<REMOVED>%2520offline_access: 403 - Forbidden

Mine is down too.

Multiple reports of outages on the other MyQ thread.

1 Like

Perhaps just an outage then but my MyQ app functions still.

The app has always functioned for me.

Hopefully it is some sort of temp outage, but smells more like MyQ plugged a hole that the workaround UA patch exposed for them.

I have an all local setup I’ve been testing on one door. Weekend project for the other doors now.

:sob: :roll_eyes: :cry: :disappointed_relieved: :cold_sweat: :fearful: :persevere: :weary: :tired_face: :triumph: :angry:

Yeap, broken again. The useragent workaround no longer works.

Is this still working as of Sep 29? Just did this and still having issues sadly.

It’s working for me again, although I did update to the latest version of the library, which includes a fix for “too many request” errors.

What library did you update and where did you do it from?

The pymyq library. I’m currently testing the feature/timeout branch.

Same for me… broken again today.

Why does this always fail but Homebridge’s integration with myQ is flawless…

The homebridge-myq source is out there to learn from.

The homebridge-myq dev posted in the github threads and was pretty adament he felt the user agent fix was not viable long term. Looks like msybe he was right.

The pymq library was apparently mostly abandoned until @Lash-L picked it up. He deserves a lot of credit for stepping into this mess. Hopefully things can move forward now.

1 Like

Mine broke originally, I did the hack, and then it broke again on 9/29 as well.

On 9/30, I used pip to update as described and confirmed it updated by looking at the files in the pymyq folder. No success. I then edited line 34 to suggest the user_agent was ios. No success.

When starting the integration is suggesting what I am guessing is an oauth error:

Error requesting data from https://partner-identity.myq-cloud.com/Account/LoginWithEmail?returnUrl=/connect/authorize/callback?client_idxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
403 Forbidden

It appears Chamberlain recently started limiting API calls to about 60/hour. The integration polls for device status every 5 seconds or so, so it greatly exceeds the limit. When this happens, the API blocks the client for about an hour.

There is some work happening right now to adjust the library and integration to deal with this, by reducing the polling frequency, and by pausing requests when the API says too many have been made. This will take a bit of time to get right, of course. But, even if the integration starts working again, there’s a decent chance that door state changes won’t be noticed for a few minutes due to the reduced polling frequency.

Maybe when/if Chamberlain supports Matter, we can get local control and these problems will go away. Personally, I’m looking at other controllers with support for HA and local control.

1 Like

If you find anything suitable please report back - the whole Chamberlain nonsense starting with promises of HomeKit support and back tracking years ago was pretty bad… this cat-and-mouse stuff is enough to ditch their ecosystem altogether.