MyQ 403 Auth Errors after 2023.9

After the update, my MyQ integration seems to be broken. The MyQ app works fine and I’ve tried restarting the garage door and HA. I also tried adding the integration new and got the same errors. Is anyone else having issues with MyQ?

Here are the log entries

Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: 403 - Forbidden
6:18:34 PM – (ERROR) components/myq/init.py - message first occurred at 5:31:16 PM and shows up 33 times

Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: 403 - Forbidden
6:06:56 PM – (ERROR) components/myq/config_flow.py

5 Likes

yeah its an issue with the user agent, workaround is in here for the time being https://github.com/home-assistant/core/issues/99947

2 Likes

Thanks! I’ll give it a shot as this is exactly my issue.

Same here. It stopped working but Iphone MyQ App still works.

I don’t see any mention of a workaround on that thread (and just someone saying that that ISN’T the forum for workarounds and people should come here). So… has anyone found a workaround for this?

Take a look at this

2 Likes

this direct link or the one-liner here are both workarounds, buried in that thread somewhere

2 Likes

where would we enter this?
also, will this have future implications if/when updates are pushed?

Thank you so much!! Worked like a charm! Never realized how easy it was to override base components!

Thank you so much!! Worked like a charm!

I am having the same issue. It seems the workaround shared is for Docker users. I don’t use Docker. Does anybody know other workarounds?

TIA

Do we have a fix for HAOS?

For HAOS Users,

  1. Install the Advanced SSH & Web Terminal add-on
  2. In the terminal add-on, run the following commands:
cd config
wget https://github.com/Lash-L/pymyq/archive/refs/heads/useragent_fix.zip
unzip useragent_fix.zip
mv pymyq-useragent_fix/pymyq .
rm -fr useragent_fix.zip pymyq-useragent_fix
  1. Restart Home Assistant

When the fix is finally made to HA, just remove the config/pymyq folder and restart Home Assistant.
@manjulapra

5 Likes

Thank you. This works!

Thank you. This worked for me.

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