brbeaird / SmartThings-MyQ-Edge

SmartThings/MyQ Integration via Edge
61 stars 19 forks source link

error: bridge server failed to login to MyQ: Unauthorized #50

Open briandmiller opened 8 months ago

briandmiller commented 8 months ago

Been getting this error today after having things working quite well with lan bridge on rPi. Do you believe that this could be the issue that you reported yesterday with MyQ server that you are working on or should I pursue something further on my end. Thanks for the great work on this.

trippcat commented 8 months ago

It definitely looks like there are authorization issues again... This was solved a few weeks back, but another windows update and a reboot, and now the authentication issues are back. I wonder if MyQ reverted their code or made additional changes.... Here are my logs... After failing credentials, I get 401 errors until 429 errors start occuring as the 401 errors start flooding the API... 2023-10-29 10:36:02 10/29/2023, 2:36:02 PM | SmartThings MyQ Bridge server: Version: 1.0.6 2023-10-29 10:36:02 10/29/2023, 2:36:02 PM | HTTP server listening on port 8090 2023-10-29 10:36:02 10/29/2023, 2:36:02 PM | Auto-discovery module listening for SmartThings hub requests 2023-10-29 10:36:06 10/29/2023, 2:36:06 PM | Got new username/password from hub. 2023-10-29 10:36:08 myQ API error: Invalid myQ credentials given: Check your username and password. If they are correct, the myQ API may be experiencing temporary issues. 2023-10-29 10:36:08 10/29/2023, 2:36:08 PM | MyQ login failed: 401 2023-10-29 10:36:08 10/29/2023, 2:36:08 PM | MyQ login failed: 401

samuelskwong commented 8 months ago

Back to this error as well after a restart.. Bummer..

Multiples 401 for 3 mins (60 secs apart) and got a 429 login failed

Gatewayclipper commented 8 months ago

Ditto here. Seems it won't login after a recent restart ...

I have the exact same trail as reported by trippcat above 2 days ago.

jaas666 commented 8 months ago

The API changed on their side. Well, technically they are using Cloudflare bot protection in front of their API logon. They are purposefully making it harder for us to use the API. Gotta love corporate greed.

OneOfOneGH commented 8 months ago

how is it 'corporate greed' when they are charging nothing for the service? that just a typical stupid comment about business with zero credibility

BigThunderSR commented 8 months ago

FYI - https://chamberlaingroup.com/press/a-message-about-our-decision-to-prevent-unauthorized-usage-of-myq

slynnmurphy commented 8 months ago

Mine has worked perfectly since I upgraded to 1.0.6 in Docker. But, I'm signed-up with multiple myQ partners. I wonder if my being signed up for the others is allowing the MyQ Edge connection to work as well. I have the Amazon Key, IFTTT and Ring integrations enabled in MyQ. I get a notification from Amazon when the door opens and closes (but it isn't actually enabled for Amazon to open and close my door as they don't support it in my area). The others have the connection enabled to MyQ, but I don't use them for anything. I can open and close the door from the Ring app, but I can also use the MyQ app for that so not sure the purpose of the Ring integration. Well, it looks Ring can integrate with Amazon Key Delivery, but why not just use the AmazonKey->MyQ integration. And it doesn't look like Ring or Amazon Key exposes the connected MyQ device to SmartThings. IFTTT only lets me close the door,

So, it looks like I have multiple "Works With MyQ" integrations that I have no use for, but the one that I use (MyQ Edge/SmartThings) is probably going to stop working soon (unless the other connections being enabled is really allowing it to work).

Gatewayclipper commented 8 months ago

I think you should count on it to stop working soon. I have all of those same apps integrated, and mine stopped following a reboot.

lukectracy commented 8 months ago

What are folks thinking about doing in light of this? I've found this integration valuable. I ride a motorcycle and do have a place for garage door opener on my bike, so I have smartthings open the garage door for me when my phone comes within range of the house. It also closes it for me when I leave. Sounds like this beloved integration is essentially dead thanks to chamberlain. :(

Looking for ideas.

jaas666 commented 8 months ago

What are folks thinking about doing in light of this? I've found this integration valuable. I ride a motorcycle and do have a place for garage door opener on my bike, so I have smartthings open the garage door for me when my phone comes within range of the house. It also closes it for me when I leave. Sounds like this beloved integration is essentially dead thanks to chamberlain. :(

Looking for ideas.

Some developers are trying to find a way around it but as long as MyQ won't cooperate this will be a giant cat and mouse game. There are other devices that work with Smartthings. You don't even have to remove the MyQ device if you don't want to. Most of these devices are fancy relays hooked to the wall opener wires which would work for your use.

TTVert commented 8 months ago

What are folks thinking about doing in light of this? I've found this integration valuable. I ride a motorcycle and do have a place for garage door opener on my bike, so I have smartthings open the garage door for me when my phone comes within range of the house. It also closes it for me when I leave. Sounds like this beloved integration is essentially dead thanks to chamberlain. :(

Looking for ideas.

Take an old garage door opener and wire a switch to it. Mount garage door opener near battery somewhere and the switch in an accessible place. I 3D printed a mount to attach to my frame on left side where i can press the button and it basically emulated pressing the garage door opener button.

trippcat commented 8 months ago

What are folks thinking about doing in light of this? I've found this integration valuable. I ride a motorcycle and do have a place for garage door opener on my bike, so I have smartthings open the garage door for me when my phone comes within range of the house. It also closes it for me when I leave. Sounds like this beloved integration is essentially dead thanks to chamberlain. :(

Looking for ideas.

In researching this issue, I stumbled across RATGDO devices (~$40 each)... It connects to your garage door opener and gives you local access to all the info you want from your door (along with control)... I'm not finding SmartThings integration for it yet, but it seems very straight forward using MQTT for a pub/sub interface... @brbeaird - I'm open to buying you a device if you are up to building the smartthings integration :-)

jsalh commented 8 months ago

There's also this gizzmo .. it does support ST .. was thinking of playing around with it (was looking to automate my "regular" blinds and found this button thing on their site as well.

https://ca.switch-bot.com/products/switchbot-bot

Gatewayclipper commented 8 months ago

I don’t kbow about the rest of you, but Brian indicated that changes were underway between he and his cosponcers. I like the way they integrated into SmartThings, so I’ll wait to see if the “clamp-down” may be overcome.

If that can’t happen, consider https://www.meross.com/en-gc/smart-garage-door-opener/garage-door-opener-remote-control/29. Its also available a little cheaper on Amazon. This controller would likely need this adapter https://shop.meross.com/products/rgr551c-accessory (some say the adaper is free with the controller order) but I wouldn’t hold my breath (adapter applies to doors with a yellow “learn” button. If you look, there is an old community thread referencing this device at https://community.smartthings.com/t/meross-garage-door-opener/206325.

From: jsalh @.> Sent: Friday, November 3, 2023 10:55 AM To: brbeaird/SmartThings-MyQ-Edge @.> Cc: Gatewayclipper @.>; Comment @.> Subject: Re: [brbeaird/SmartThings-MyQ-Edge] error: bridge server failed to login to MyQ: Unauthorized (Issue #50)

There's also this gizzmo .. it does support ST .. was thinking of playing around with it (was looking to automate my "regular" blinds and found this button thing on their site as well.

https://ca.switch-bot.com/products/switchbot-bot

— Reply to this email directly, view it on GitHub https://github.com/brbeaird/SmartThings-MyQ-Edge/issues/50#issuecomment-1792590479 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4K2DWJ3R73DOEZENYGJSDYCUAT3AVCNFSM6AAAAAA6SX2442VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGU4TANBXHE . You are receiving this because you commented. https://github.com/notifications/beacon/AF4K2DURUCAR7JXVEC6BAZDYCUAT3A5CNFSM6AAAAAA6SX2442WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTK3DBI6.gif Message ID: @. @.> >

TTVert commented 8 months ago

Same here, i'll wait it out and hope for the best right now.

johnlinehan commented 8 months ago

This integration is/was great but I don’t understand why Chamberlain can’t just embrace this and even offer it themselves. They’d be better off embracing it so they can control it.

TTVert commented 8 months ago

This integration is/was great but I don’t understand why Chamberlain can’t just embrace this and even offer it themselves. They’d be better off embracing it so they can control it.

Unfortunately due to the litigation happy people of the world IMO. That's why they would allow IFTTT to close but not open the doors. They don't want to get sued for illegal entry.

trippcat commented 8 months ago

This integration is/was great but I don’t understand why Chamberlain can’t just embrace this and even offer it themselves. They’d be better off embracing it so they can control it.

Unfortunately due to the litigation happy people of the world IMO. That's why they would allow IFTTT to close but not open the doors. They don't want to get sued for illegal entry.

My guess is now folks will need to setup work-arounds (for example a remote relay to activate the door)... This won't activate the warning siren or flashing lights prior to closing. By not allowing access to the API's isn't MyQ making their systems more un-safe?

briandmiller commented 8 months ago

I consider myself fortunate to have had use of SmartThings-MyQ-Edge for the few weeks that I did before it was taken away from us. What a brilliant piece of work.

My first effort was to order the Meross from Amazon for $30. I submitted the form on their website to request their device to connect to my yellow button Chamberlain and received it in less than a week. Installation and setup was pretty easy. Easily connected it to Alexa for voice control. No pin needed. Opener beeps a warning when closing and no delay which is fine. There may be a setting to adjust delay. Also connected to SmartThings. I can control it with a SmartThings button that I use for locking and unlocking the deadbolt on the man door. Still haven't figured out how to control the garage door as a result of my leaving or returning so jury still out on that. If anyone has any suggestions I'd love to hear about them.

My brother uses the GoTailWind controller and has it open and close when he arrives and leaves. He does that without SmartThings or any other hub.

jaas666 commented 8 months ago

I consider myself fortunate to have had use of SmartThings-MyQ-Edge for the few weeks that I did before it was taken away from us. What a brilliant piece of work.

My first effort was to order the Meross from Amazon for $30. I submitted the form on their website to request their device to connect to my yellow button Chamberlain and received it in less than a week. Installation and setup was pretty easy. Easily connected it to Alexa for voice control. No pin needed. Opener beeps a warning when closing and no delay which is fine. There may be a setting to adjust delay. Also connected to SmartThings. I can control it with a SmartThings button that I use for locking and unlocking the deadbolt on the man door. Still haven't figured out how to control the garage door as a result of my leaving or returning so jury still out on that. If anyone has any suggestions I'd love to hear about them.

My brother uses the GoTailWind controller and has it open and close when he arrives and leaves. He does that without SmartThings or any other hub.

This works if you use Android Auto.

On the Smartthings app go to Menu (bottom right), select Android Auto and at the bottom select "run routine when arriving". If you are connected to Android Auto while arriving that routine will be triggered.

Be warned that for me it triggers when aim still 2 streets away from home and I haven't found a way to change that trigger radius, but it works.

Same with the leaving one.. it won't trigger as soon as you leave the house.

brbeaird commented 8 months ago

I am sorry to say this is officially dead, at least for the time being. The API changes by MyQ are dramatic and are not possible to overcome at this point. I suggest looking at alternatives like Meross. I also have a Ratgdo device on order - once I get my hands on it, I may see if I can get that integrated with SmartThings as a replacement.

More details here - https://www.theverge.com/23949612/chamberlain-myq-smart-garage-door-controller-homebridge-integrations