-
-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyQ Lite is no longer able to login to MyQ.com #126
Comments
Ditto -- login is failing as of today. |
Got message on another thread. He's working on it now. May be a few days before he knows anything. |
Thanks! |
same here started getting before i updated everything |
I have not updated and it’s happening to me as well so it is definitely
something that myq did on their side
On Wed, Aug 25, 2021 at 09:29 clmyers2019 ***@***.***> wrote:
same here started getting before i updated everything
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQ4UK3LSPW45GYJMCKVGIDT6UD63ANCNFSM5CZJLBEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
--
Christopher Goodrich B.S., CISSP-ISSEP, ISSMP, HCISPP, RP
***@***.***
***@***.***
505-227-6130
|
Yep, MyQ changed something, and this is currently broken. I’m not sure at this point if it’s a permanent change - this has happened occasionally in the past where it comes back up the next day. The good news is there is a newer version of the API login flow that some other integrations (HomeBridge, pymyq) are using successfully. The bad news is it is not a simple change to implement - a couple parts in particular I’m not really sure will work within Groovy. I will see what I can do, but it may be several days before I make any real progress. |
Looks like per https://github.com/hjdhjd/homebridge-myq/search?q=v6 the main difference is around authentication for
I'm not sure if the Smartthings Groovy implementation is the same as normal Java's, but it looks like there is an |
Yep. The nasty part here is that Oauth normally involves logging into a web
form through a browser, which is not really something that is supported in
groovy SmartApps in a way that would let the app properly get the resulting
token. A couple of the other implementations are basically making http
calls behind the scenes and scraping the HTML. It's not pretty and not
easy, but in theory it should be possible.
…On Wed, Aug 25, 2021 at 2:02 PM Jason Karuza ***@***.***> wrote:
Looks like per https://github.com/hjdhjd/homebridge-myq/search?q=v6 the
main difference is around authentication for v6 using OAuth.
Starting with v6 of the myQ API, myQ now uses OAuth 2.0 + PKCE to
authenticate users and
provide access tokens for future API calls. In order to successfully use
the API, we need
to first authenticate to the myQ API using OAuth, get the access token,
and use that for
future API calls.
I'm not sure if the Smartthings Groovy implementation is the same as
normal Java's, but it looks like there is an AuthConfig class that might
help with Oauth:
http://javadox.com/org.codehaus.groovy.modules.http-builder/http-builder/0.6/groovyx/net/http/AuthConfig.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXHM2A75APTP75BMM6MXQTT6U45RANCNFSM5CZJLBEQ>
.
|
myQ is not working today even using their app. They must have an outage.
On Wed, Aug 25, 2021 at 3:07 PM Brian Beaird ***@***.***>
wrote:
… Yep. The nasty part here is that Oauth normally involves logging into a web
form through a browser, which is not really something that is supported in
groovy SmartApps in a way that would let the app property get the resulting
token. A couple of the other implementations are basically making http
calls behind the scenes and scraping the HTML. It's not pretty and not
easy, but in theory it should be possible.
On Wed, Aug 25, 2021 at 2:02 PM Jason Karuza ***@***.***>
wrote:
> Looks like per https://github.com/hjdhjd/homebridge-myq/search?q=v6 the
> main difference is around authentication for v6 using OAuth.
>
> Starting with v6 of the myQ API, myQ now uses OAuth 2.0 + PKCE to
> authenticate users and
> provide access tokens for future API calls. In order to successfully use
> the API, we need
> to first authenticate to the myQ API using OAuth, get the access token,
> and use that for
> future API calls.
>
> I'm not sure if the Smartthings Groovy implementation is the same as
> normal Java's, but it looks like there is an AuthConfig class that might
> help with Oauth:
>
http://javadox.com/org.codehaus.groovy.modules.http-builder/http-builder/0.6/groovyx/net/http/AuthConfig.html
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#126 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABXHM2A75APTP75BMM6MXQTT6U45RANCNFSM5CZJLBEQ
>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAXSWYMQLXHZKHQGNF3QVLT6U5PDANCNFSM5CZJLBEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
actually the app is still working fine for me. Came over from thomasmunduchira/myq-api#34 which is another project that started flapping today unfortunately. |
My (own) iOS app is also failing as of yesterday. Have they turned off the V5 support?
|
Me too. Getting login errors from Smartthings when I try to control my garage door. Tried changing the password in the MyQ app. Can log into the MyQ app, but can't update the password in the MyQ Lite SmartApp in the Smartthings app. |
Yes, it's going to be broken for everyone - sorry. MyQ made a change within the last 24 hours that breaks the version (v5) of the API we are using. At least one other project in github has successfully moved to v6, but it's a major change. I do think I'll figure out how to do it here, but with my schedule right now, it's not going to be quick, unfortunately. |
Thanks for getting on this!! Can't be without it! |
Good to know this is being addressed. |
Appreciate the investigation @brbeaird! I had just gotten automation back up and working and then ran into the “login error” noted above. Excited to get back to normal. |
I bypassed Chamberlain a long time ago by using a Z-Wave relay in parallel with the wired switch panel on my garage door controllers. My Chamberlain gate controller is another problem however because it does not have a wired panel switch and can only be controlled via a remote or the MyQ hub. While we are waiting for Brian to address the latest changes from Chamberlain, I decided to brut force a fix by modifying one of my remotes to be controlled by a ZigBee relay. If anyone is interested, I published a video here: Regardless of whether or not the issue is resolved, having remote access to a remote will provide a solid backup if anything should go wrong in the future. |
i have done the same a while back trying to get out of the dependency of MyQ - while it works nicely as a backup, it breaks with automation. here is how: i have two people in my household (me and my wife) with automation rules to open and close the garage based on geolocation. with the MyQ app and the code brbeaird@ wrote the commands sent to the controller are specific to open/close so if both me and my wife are leaving at the same time (in the same car) the app will send two "close" commands to the controller which will simply close it, whereas with the workaround it will simulate two clicks on the remote which in affect will leave the garage door open (one will try to close yet the other will open it). same will happen when we come back: the app send two "open" commands which will open the garage while the workaround will simulate two clicks resulting in the garage door wither closed or stopped midway. looking forward too see a fix from brbeaird@ |
oferbarzakai@ I appreciate your concern but there is a simple workaround by creating two virtual switches ("Gate Open" and "Gate Close" in my case) using the WebCore smart app in SmartThings to create conditions based on the gate's sensor status where the virtual switches will open or close the gate. Here is a screen shot of my WebCore piston: Instead of having your automation activate the "Gate Remote" directly, it would only need to activate "Gate Open" or "Gate Close" and if either one of them are activated twice, the second activation will have no effect. |
nicely done! i will have to give it a try ;) |
i am testing this but i do not i follow you explanation for "if either one of them are activated twice, the second activation will have no effect." - why is that? say both me and my wife leaving the house, there will be two event that trigger "Close Gate" while the sensor is reporting "Open" hence there will be two "clicks" on the remote no? which will result in the door either open or stopped half way. what am i missing? |
I have been looking at this and there is a problem with just looking for a "switch changes", but instead should be "physically changes to on" which would prevent the second phone from activating it again. After a delay, the code needs to reset the switch to the off state but I am still looking at the best way to do that. Another issue is the sensor changes immediately when opening, but does not change on closing until the gate is fully closed. Hopefully I will post a better version soon. |
FWIW - here is a piston i created that does the needful. i would still go back to use brbeaird@ code and the MyQ APIs as it is much more elegant and simple. |
@oferbarzakai My goal was a little different, I wanted the device to work with Alexa which required the virtual switches to be returned to the off state as soon as the gate stopped moving. This would also prevent either of the virtual switches from being activated a second time until the gate motion stops. So most of the following code was to track the movement of the gate: |
Sorry if this is off topic and if it needs to be moved elsewhere or deleted, I understand, but I feel like this is as good at time and place as any others to ask the question. Unless I a misunderstanding what will happen when SmartThings shuts down Groovy & WebCore (which perhaps, hopefully, I am), but even if brbeaird is able to get this working again, isn't this just a VERY temporary fix at this point - in the sense that by year end, this -- along with all other custom DTH and Smartapps are going to stop functioning? Perhaps this is a good time and excuse to switch over to HomeAssistant? Am I missing something? Is there a chance that EXISTING smartapps and custom handlers will continue to work? But as I understand it, this is NOT the case. |
It's worth mentioning, yes. This effort is likely the last hurrah for the SmartApp, and I'm not exactly sure how long it will even be in place. If we're lucky, maybe the groovy shutdown will get pushed out for a bit. At that point, I do plan to rewrite this whole thing to use the new SmartThings API smartapp flow. The tough part is that it will not be quite as simple as it is today where people can copy/paste the code into a web-hosted IDE. But for anyone who is willing to try, I will document the steps needed to get it running. Regardless, there is no way I'm going to back to having to manually hit my garage door every time I need it to open 😄 |
@brbeaird , I am a little confused about this thread and what is actually needed, from a software and hardware perspective. It seem to me that in order to get the MYQ garage door to work correctly with Hubitat now, is to get the Smartthings App and install the MYQ app for Smartthings. Then I could integrate Smartthings to Hubitat to get the automations to work again in Hubitat. Is that correct? Is a new hub required for Smartthings to work correctly or will the MyQ App work without it? It also seemed that in order to integrate Smartthings to Hubitat that they specified a Smarthings Hub i sneeded? I understand that I would need a new tilt sensor on the door to know whether the door is open or not, correct? Is there a cost to Smartthings App and use? Could you possibly make this a bit clearer for me? |
@brbeaird I don't have access to a computer. Any workaround to get the tokens just using an Android phone or cheomebook? Thanks. |
hi there I am not a coder...simply a paster of code. what is the myQ token value that needs to be assigned. I cut and pasted the latest version of the code into my smartapp and resinstalled it but I am getting a network error. Login error: null |
You have to download the token generator app. The link to it is listed in the install instructions. You can find the app here: |
In the process of updating brbeaird's code (adding token), I was having issues and ended up completely removing the MyQ link to Google Assistant. Little did I know that there has been an ongoing issue with MyQ not being listed as "Works with Google" and I am unable to get voice to work. I swear, was working for a couple of years and now this.. |
@brbeaird I went through the process by using the Community Installer as you recommended. I generated the access token using the Windows utility and copied to clipboard. In the IDE I clicked on the link to edit the MyQ Lite settings. When I click on the Settings link in the MyQ app, I get the following output: Any idea why I am not getting the edit boxes to enter the OAuth token? |
@brbeaird , I am a little confused about this thread and what is actually needed, from a software and hardware perspective. It seem to me that in order to get the MYQ garage door to work correctly with Hubitat now, is to get the Smartthings App and install the MYQ app for Smartthings. Then I could integrate Smartthings to Hubitat to get the automations to work again in Hubitat. Is that correct? Is a new hub required for Smartthings to work correctly or will the MyQ App work without it? It also seemed that in order to integrate Smartthings to Hubitat that they specified a Smarthings Hub i sneeded? I understand that I would need a new tilt sensor on the door to know whether the door is open or not, correct? Is there a cost to Smartthings App and use? Could you possibly make this a bit clearer for me? |
Update and publish the newest smart app in IDE also. |
@TTVert thanks, I will give it a try. I thought the Community Installer installed the latest code. IDE does not indicate more up-to-date code is available. |
I cannot comment on that as I manually update. I should probably set that up. II also didn't see the token option so I compared the code from what I had vs. what the new code was and it was different. |
I copied the code that was generated by the Community Installer to a text file on my computer and I created another text file from the master source on GitHub and then compared the two files. They are identical. So it appears I have everything I need, but it still does not allow me to enter the OAuth token. |
Double check your smart app is exactly this and them make sure to publish it. `/**
*/ String appVersion() { return "4.0.1" } definition( appSetting "MyQToken" preferences { def appInfoSect(sect=true) { def mainPage() {
} def versionCompare(deviceName){ def refreshChildren(){ /* Preferences */
} def getDeviceSelectionList(deviceType){ def prefListDevices() {
} def sensorPage() {
} def summary() {
} /* Initialization */ def updated() {
} /* Version Checking */ //Called from scheduler every 3 hours //Get latest versions for SmartApp and Device Handlers
} //When version response received (async), update state with the data //In case of periodic update check, also refresh installed versions and update the version warning message def updateVersionMessage(){
} def uninstall(){ def uninstalled() { def initialize() {
} def verifyChildDeviceIds(){
} def createChilDevices(door, sensor, doorName, prefPushButtons){
} def syncDoorsWithSensors(child){ def updateDoorStatus(doorDNI, sensor, child, doorName){
} def refresh(child){ def refreshAll(){ def refreshAll(evt){ def sensorHandler(evt) {
} def doorButtonOpenHandler(evt) { def doorButtonCloseHandler(evt) { def getSelectedDevices( settingsName ) { /* Access Management */ private doLogin(refreshToken) {
} //Get devices listed on your MyQ account
} def getHubID(){
} import groovy.transform.Field @field final MAX_RETRIES = 1 // Retry count before giving up private getMyQHeaders() { // HTTP PUT call (Send commands) def sendDoorCommand(myQDeviceId, myQAccountId, command) { def sendLampCommand(myQDeviceId, myQAccountId, command) { //Transition for people who have not yet clicked through "modify devices" steps //Remove old unused pieces of state //Available to be called from child devices for special logging After this refresh the IDE page and look at smart app settings and you should have this: |
@TTVert I really appreciate the effort you have made to help me. I tried to compare the code you sent with the GitHub master (which matches my code), but the Wiki seems to have modified the code to the extent they are virtually impossible to compare. I am using a Windows application called WinMerge: All of the yellow indicates places where the code does not compare (not counting whitespace). You can see from the bars on the left edge, that there is almost no comparison from top to bottom. When I do the same comparison with the code brought in with the Community Installer and Brian's master repo code in GitHub, the comparisons are identical: Again, I really appreciate your effort to help. Thank you very much. |
Send me your code and I’ll use notepad ++ to compaer them. Also are you sure you published the new app>
Dave
From: wtblock ***@***.***>
Sent: Sunday, September 19, 2021 10:40 AM
To: brbeaird/SmartThings_MyQ ***@***.***>
Cc: Dave Brunner ***@***.***>; Mention ***@***.***>
Subject: Re: [brbeaird/SmartThings_MyQ] MyQ Lite is no longer able to login to MyQ.com (#126)
@TTVert<https://github.com/TTVert> I really appreciated the effort you have made to help me.
I tried to compare the code you sent with the GitHub master (which matches my code), but the Wiki seems to have modified the code to the extent they are virtually impossible to compare. I am using a Windows application called WinMerge:
<https://user-images.githubusercontent.com/44687173/133933357-08886be5-5c48-467a-8531-e5ed3a1a3025.png>
All of the yellow indicates places where the code does not compare (not counting whitespace).
You can see from the bars on the left edge, that there is almost no comparison from top to bottom.
When I do the same comparison with the code brought in with the Community Installer and Brian's master repo code in GitHub, the comparisons are identical:
<https://user-images.githubusercontent.com/44687173/133933564-23298be2-5d7d-4743-9d8f-7e332ec2518e.png>
Again, I really appreciate your effort to help. Thank you very much.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#126 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFZ62CUOKS6SXIUQ5MHU5JLUCX737ANCNFSM5CZJLBEQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@TTVert thanks. Here is a link to a folder containing the code I am using: https://1drv.ms/u/s!ArOGPLJSgdz0ga_UGkbFdhOT1HgO1SA?e=ACqHwm The link is to a One Drive folder containing my IDE source and the GitHub source: Thanks again. |
Well that matches mine exactly and as you said both of yours also match. With that said, are you 100% sure you saved and published? If you don’t publish it will not reflect the changes you’ve made. Failing that I’m out of ideas. Perhaps the page you are trying to add the token is cached? Try inprivate or a different browser yet? I do not believe I had to update my device handlers for this, just the smart app to allow insertion of the token.
Dave
|
Here is a screen shot from the IDE: The Community Installer does that automatically. Thanks again for checking this out. At least I know I am not doing something stupid 🤔 |
@TTVert I tried an InPrivate window and switched from the Edge browser to Chrome and all three do the same thing: I can't explain it. Thanks again! |
And again, you for sure saved/PUBLISHED right? I wonder if something is different for those who auto update than myself who manually updates the code. That is exactly what mine showed before I saved/published. I'll have to defer to Brian on this one. |
Well damn, I tried doing another Save and Publish and now it works! Thank you so much for sticking with me. And yes I do feel a little stupid 🙄 |
@brbeaird ; First, great job on this project! Happy to donate! 2nd, I had all of this setup before last month, and had both of my garage doors independently working. For some reason now, I can't get the MyQLite app to modify the second door. It sees both doors in the MyQ account, but when I modify the second, it simply removes the first. I think my problem is my handlers may not be setup correctly for a second door this time. Do you have any guidance? |
Figured it was something like that. Glad it fixed it. @brbeaird, thanks so much for this, it's great. While I'm here, does anyone have an any idea how to add a delay w/ IFTTT? I have IFTTT pro and when I say a command it opens my garage doors and also lowers the screen sin two commands in the same applet. Here is what it is below. The connected product just moves both screens down and the switch on is just turning on the momentary garage door switches. I know apillio supposedly does this and i just downloaded it and am playing but I'd love any input anyone here may have. |
I am very confused. All I want is for the Hubitat app to work. I am hoping to eliminate the reliance on SmartThings. What are the steps required for Hubitat? |
I agree. All I want are the steps for Hubitat. |
To be clear: these steps (and this repository as a whole) are not designed for use with Hubitat. I understand there is a modified version of this SmartApp that has been in use with Hubitat for awhile but would need to be updated. That is something I may help with eventually, but I do not actually use Hubitat and do not know when I'll get around to figuring out what would need to be added or if it even makes sense given how SmartThings has already begun a large divergence from Hubitat as far as custom device type handlers and the fact that there is no realistic way for me to support issues on Hubitat as well. |
Ok then for myQ to work on SmartThings is a SmartThings Hub required. I hate to have to purchase another Hub
Sent from my iPhone. Typos are authorized.
Dale
… On Sep 20, 2021, at 1:24 PM, Brian Beaird ***@***.***> wrote:
All I want are the steps for Hubitat.
To be clear: these steps (and this repository as a whole) are not designed for use with Hubitat. I understand there is a modified version of this SmartApp that has been in use with Hubitat for awhile but would need to be updated. That is something I may help with eventually, but I do not actually use Hubitat and do not know when I'll get around to figuring out what would need to be added or if it even makes sense given how SmartThings has already begun a large divergence from Hubitat as far as custom device type handlers and the fact that there is no realistic way for me to support issues on Hubitat as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
No. Here's my setup:
Three Chamberlain garage door openers, one LiftMaster gate control box.
While I do have the MyQ hubs for wireless control through the MyQ app,
everything else is software, not hardware. This has been setup and working
through Brian's middleware code for nearly three years now, at least up
until this latest change by MyQ that rendered the login no longer working.
I set this up for my father, who was blind so he could tell either Alexa or
Google to open the front gate. Those smart devices were linked through
IFTTT, Smartthings, through Brian's middleware, and then MyQ. Hardly any
delay at all, you'd tell Alexa to open the gate and it would beep on
schedule a couple seconds later.
Christopher Goodrich B.S., CISSP-ISSEP, ISSMP, HCISPP, RP
***@***.***
***@***.***
505-227-6130
…On Mon, Sep 20, 2021 at 1:22 PM Dale Fant ***@***.***> wrote:
Ok then for myQ to work on SmartThings is a SmartThings Hub required. I
hate to have to purchase another Hub
Sent from my iPhone. Typos are authorized.
Dale
> On Sep 20, 2021, at 1:24 PM, Brian Beaird ***@***.***> wrote:
>
>
> All I want are the steps for Hubitat.
>
> To be clear: these steps (and this repository as a whole) are not
designed for use with Hubitat. I understand there is a modified version of
this SmartApp that has been in use with Hubitat for awhile but would need
to be updated. That is something I may help with eventually, but I do not
actually use Hubitat and do not know when I'll get around to figuring out
what would need to be added or if it even makes sense given how SmartThings
has already begun a large divergence from Hubitat as far as custom device
type handlers and the fact that there is no realistic way for me to support
issues on Hubitat as well.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
> Triage notifications on the go with GitHub Mobile for iOS or Android.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANQ4UK34KAIJFFAVSATAUZLUC6CY7ANCNFSM5CZJLBEQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Looks like this just happened again today. When trying to log in through MyQ in SmartThings getting the "The username or password you entered is incorrect. Go back and try again."
@brbeaird - can you work your magic please sir?
The text was updated successfully, but these errors were encountered: