8000 URL and JSON format for controlling v2 devices · Issue #9 · tinkerborg/thinq2-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

URL and JSON format for controlling v2 devices #9

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

Open
stefxx opened this issue May 16, 2020 · 10 comments
Open

URL and JSON format for controlling v2 devices #9

stefxx opened this issue May 16, 2020 · 10 comments

Comments

@stefxx
Copy link
stefxx commented May 16, 2020

Another question. Does anyone already know the URL and JSON format for controlling v2 devices? I guess it starts with the thinq2Uri from the gateway-uri response...

Thanks!

@stefxx
Copy link
Author
stefxx commented May 19, 2020

Too bad, nobody knows yet. I would love to do some additional debugging but I am unable to remove the certificate pinning in the LG ThinQ APK. I tried but I am just not smart enough :(

Any suggestions are appreciated!

@tinkerborg
Copy link
Owner

Sorry, not ignoring you, I'm just better explaining with code than with words. :) I'm ramping up dev work on this project this week, and will be adding control features that you should be able to use as an example.

Is your phone rooted?

@stefxx
Copy link
Author
stefxx commented May 20, 2020

No worries, your work and commitment to this project is highly appreciated!

Yes, I have a rooted phone.

@stefxx
Copy link
Author
stefxx commented May 27, 2020

Hi, just curious on the progress of controlling v2 devices. Any update?

Thanks!

@stefxx
Copy link
Author
stefxx commented Jun 4, 2020

Hi, any clue on how to work around the certificate pinning in the LG app? I would love to see how far I can get by tracing the API calls from it...

@stefxx
Copy link
Author
stefxx commented Jun 14, 2020

Hi @tinkerborg ! Not sure how far you are with the controlling of v2 devices, and I know you are better with code than with words but perhaps you could share a little around this topic? Maybe just a json example we can work with? Thanks!!

@stefxx
Copy link
Author
stefxx commented Jun 18, 2020

Found it!

POST: https://eic-service.lgthinq.com:46030/v1/service/devices/[your-device-id]/control-sync
(for the base URL, use the thinq2Uri from the gateway-uri response)

On: {"command":"Operation","ctrlKey":"basicCtrl","dataKey":"airState.operation","dataValue":"1"}
Off: {"command":"Operation","ctrlKey":"basicCtrl","dataKey":"airState.operation","dataValue":"0"}
Set Temp: {"command": "Set","ctrlKey": "basicCtrl","dataKey": "airState.tempState.target","dataValue": 22}

@sheppy99
Copy link

@tinkerborg @stefxx did you make any progress on controlling things with this? With help from an OpenHAB Community thread I've got this reporting the status of my washer, and being able to start it remotely without the app would help a lot

@stefxx
Copy link
Author
stefxx commented Oct 24, 2020

Controlling fans and other appliances can be done with the info above. Starting a washer is much more complicated, and since I don't see any benefit in it, I never tried. I did grab the required json command here: ollo69/ha-smartthinq-sensors#47

@sheppy99
Copy link
sheppy99 commented Oct 24, 2020

@stefxx Thanks for the reply, it gives me a clue and where to keep an eye on. The benefit is it would allow the washer to start when I have spare Solar Power and theres nobody home. We have a lot of localised long white clouds around here, and powers not cheap :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0