Git Product home page Git Product logo

Comments (17)

brbeaird avatar brbeaird commented on July 19, 2024 1

The good news: the door control API controls are still working, so existing automations seem ok (for now).

Bonus good news: I can reproduce the issue within Postman on my computer, which means it's not a matter of MyQ blocking SmartThings connections.

The bad news: the initial "get device details" API call has changed somehow, which means the SmartApp setup is dead at the moment. Hopefully I can either figure it out or else someone with the ability to trace and reverse-engineer it (or from one of the other homebrew MyQ integrations) posts information about what has changed for that API call.

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024 1

Good news! I think I've got it working again. Just pushed an update.

Thankfully, the pymyq library (the one home assistance uses) was not broken, so I was able to find the difference. Amazingly, it came down to something as simple as letter casing. I had to switch from this:

https://myqexternal.myqdevice.com/api/v4/userdevicedetails/get

to this:

https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get

from smartthings_myq.

donfri avatar donfri commented on July 19, 2024

+1

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

from smartthings_myq.

guxdude avatar guxdude commented on July 19, 2024

Glad I found this. I just got a new lift master 8550 today and have been unable to find it using the myq lite smart app. I assume this is why? I believe I followed all the setup instructions properly.

Here are my live log messages:
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug API Error: java.net.SocketException: Connection reset
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug API Error: java.net.SocketException: Connection reset
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug got login response: groovyx.net.http.HttpResponseDecorator@464819cc
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug lightVersion: 1.0.1
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug doorNoSensorVersion: 1.1.8
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug doorVersion: 2.2.4
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug latestVersion: 2.1.6
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug installedVersion: 2.1.6
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug previousVersion: 0
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug lightVersion: 1.0.1
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug doorNoSensorVersion: 1.1.8
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug doorVersion: 2.2.4
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug latestVersion: 2.1.6
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug installedVersion: 2.1.6
725f4394-0ae1-407e-b6e7-1e8cd4b2bbde 11:03:18 PM: debug previousVersion: 0

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

Yep, that's why. I've been checking around several other code repositories that use this, and none of them have been updated yet. Maybe someone will find something later today.

from smartthings_myq.

hyukishi avatar hyukishi commented on July 19, 2024

@brbeaird Is there a way to see what my security token is? I'm trying to debug on my end to help out however I can.

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

The token comes from making a POST call to /User/Validate. You could also edit the MyQLite SmartApp code on line 906 to this:

log.debug "got login response: " + response.data.SecurityToken

Then you'll see the token in your SmartThings live logs.

From what I've seen, these are the most likely things that may have changed on the device listing call:

  • URL change (maybe even just a version number update)
  • Call may have changed from GET to POST
  • Headers may have changed
  • If call is now POST, a request body may be needed

But unless I can get a hold of a device I can use to do some packet sniffing, it's anyone's guess what the change is.

from smartthings_myq.

hyukishi avatar hyukishi commented on July 19, 2024

After changing line 1028 to apiGet("/api/v5/userdevicedetails/get", []) { response -> I get the following, at which point it hangs again. Log below...

bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug button devices to delete: []
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Chosen hub for child devices: SmartThings Hub (c4ba0bba-7adb-40ea-86ad-efbe241dbb15)
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug ID's to look for: [bf370c84-7fbc-4280-bf3c-3605c1993c1f|GarageDoorOpener|7855326 Opener, bf370c84-7fbc-4280-bf3c-3605c1993c1f|GarageDoorOpener|7855326 Closer]
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Found 1 hub(s) at this location.
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Valid hub found: SmartThings Hub (c4ba0bba-7adb-40ea-86ad-efbe241dbb15)
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Creating door with no sensor
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Creating child door device bf370c84-7fbc-4280-bf3c-3605c1993c1f|GarageDoorOpener|7855326
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug In CreateChild
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Storing door info: Garagetype: 17 status: 2 type: Garage Door Opener WGDO
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:43 AM: debug Found door: 7855326
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:42 AM: debug Initializing...
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:23 AM: debug Single door detected (string).
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:23 AM: debug Valid doors chosen: bf370c84-7fbc-4280-bf3c-3605c1993c1f|GarageDoorOpener|7855326
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:23 AM: debug Doors chosen: bf370c84-7fbc-4280-bf3c-3605c1993c1f|GarageDoorOpener|7855326
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug Storing door info: Garagetype: 17 status: 2 type: Garage Door Opener WGDO
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug Found door: 7855326
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug got login response: groovyx.net.http.HttpResponseDecorator@32be01bd
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug lightVersion: 1.0.1
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug doorNoSensorVersion: 1.1.8
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug doorVersion: 2.2.4
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug latestVersion: 2.1.6
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug installedVersion: 2.1.6
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug previousVersion: 2.1.6
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug lightVersion: 1.0.1
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug doorNoSensorVersion: 1.1.8
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug doorVersion: 2.2.4
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug latestVersion: 2.1.6
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug installedVersion: 2.1.6
bf370c84-7fbc-4280-bf3c-3605c1993c1f 10:41:09 AM: debug previousVersion: 2.1.6

from smartthings_myq.

hyukishi avatar hyukishi commented on July 19, 2024

Good news! I think I've got it working again. Just pushed an update.

Thankfully, the pymyq library (the one home assistance users) was not broken, so I was able to find the difference. Amazingly, it came down to something as simple as letter casing. I had to switch from this:

https://myqexternal.myqdevice.com/api/v4/userdevicedetails/get

to this:

https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get

I missed your reply right before posting mine... Gonna give it a shot :)

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

You just reminded me that URL is in more than one place. I need to fix that.

from smartthings_myq.

hyukishi avatar hyukishi commented on July 19, 2024

Unfortunately, that didn't resolve the issue. Looks like line 1028 needs to show /api/v5/
userdevicedetails/get

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

Can you try the version I just pushed? Working for me in SmartThings now.

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

image

from smartthings_myq.

hyukishi avatar hyukishi commented on July 19, 2024

That worked! Thank you so much for your dedication to this project!

from smartthings_myq.

guxdude avatar guxdude commented on July 19, 2024

Worked for me too! Thank you so much!

from smartthings_myq.

brbeaird avatar brbeaird commented on July 19, 2024

Awesome! Glad it was something simple.

from smartthings_myq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.