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
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.
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.
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
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.
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.
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.