Unauthorized warning

Ironshel
Posts: 4
Joined: Tue Dec 17, 2019 2:18 pm

Unauthorized warning

Post by Ironshel »

After using this plugin for many months, out of the blue I am consistently getting this error message:

MyQ Warning Error logging into MyQ server: Error requesting data from https://partner-identity.myq-cloud.com/connect/token: 401 - Unauthorized

Has something change with the API? My credentials still work. The MYQ app on my phone still works. The Indigo plugin doesn't seem to work any more and always returns this same warning.
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Unauthorized warning

Post by FlyingDiver »

Yes, MyQ has broken the API again. If/when the library developers figure out a fix, I'll post an update. Until then, it's broke.

My new house will have Alladin Genie openers. I'm tired of this crap.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
sarahcat
Posts: 168
Joined: Sat Apr 16, 2011 12:27 am

MyQ API problem

Post by sarahcat »

Hi Joe,

I was about to update to Indigo 2023.1.0, but there is a caveat about Python 2 scripts no longer being supported. For whatever reason, my MyQ is still working, but despite the API problem, I didn't wish to upgrade Indigo until I asked if you had used Python and which version for the MyQ Plugin.

Thanks!
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MyQ API problem

Post by FlyingDiver »

sarahcat wrote:Hi Joe,

I was about to update to Indigo 2023.1.0, but there is a caveat about Python 2 scripts no longer being supported. For whatever reason, my MyQ is still working, but despite the API problem, I didn't wish to upgrade Indigo until I asked if you had used Python and which version for the MyQ Plugin.

Thanks!
All plugin versions since 2022.0.0 have been Python3.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Unauthorized warning

Post by FlyingDiver »

If you're brave, you can use an unreleased patch to the MyQ library to address this issue. In Terminal on the Indigo server system, do:

Code: Select all

pip3 uninstall pymyq
pip3 install git+https://github.com/arraylabs/pymyq.git@refs/pull/188/head
It seems to work on my system.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Unauthorized warning

Post by FlyingDiver »

You will also need to update to plugin version 2022.0.4.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Locked

Return to “MyQ”