Comments (17)
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.
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.
+1
from smartthings_myq.
from smartthings_myq.
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.
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.
@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.
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.
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.
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.
You just reminded me that URL is in more than one place. I need to fix that.
from smartthings_myq.
Unfortunately, that didn't resolve the issue. Looks like line 1028 needs to show /api/v5/
userdevicedetails/get
from smartthings_myq.
Can you try the version I just pushed? Working for me in SmartThings now.
from smartthings_myq.
from smartthings_myq.
That worked! Thank you so much for your dedication to this project!
from smartthings_myq.
Worked for me too! Thank you so much!
from smartthings_myq.
Awesome! Glad it was something simple.
from smartthings_myq.
Related Issues (20)
- myqtokengenerator-win closes HOT 5
- On/Off switches not working HOT 23
- Make latest changes compatible with Hubitat HOT 3
- I have 2 doors and I am unable to create two toggle doors HOT 1
- Can no longer update DTH through GitHub repository in IDE HOT 1
- Error creating "no sensor" version of SmartApp HOT 1
- Token Generator HOT 5
- Push button switches don't connect HOT 1
- could you please update the Hubitat version as well? HOT 1
- new myq code issues HOT 24
- java.lang.NullPointerException: Cannot invoke method post() on null object @line 418 (getVersionInfo) HOT 2
- MyQ on Smartthings still doesn't work HOT 1
- Can't authenticate on mobile app HOT 1
- Instructions don't seem to match current SmartThings app HOT 4
- Still having login error. HOT 1
- Controlling lights with Z-wave relay HOT 1
- java.lang.NullPointerException: Cannot get property deviceNetworkld' on null object. HOT 1
- delete
- No longer working with the retirement of SmartThings IDE HOT 1
- Error installing garage doors with sensor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartthings_myq.