Skip to main content

Reverse-engineered client for the LG SmartThinQ API.

Project description

WideQ

A library for interacting with the "LG SmartThinq" system, which can control heat pumps and such. I reverse-engineered the API from their mobile app.

To try out the API, there is a simple command-line tool included here, called example.py. To use it, provide it with a country and language code via the -c and -l flags, respectively:

$ python3 example.py -c US -l en-US

LG accounts seem to be associated with specific countries, so be sure to use the one with which you originally created your account. For Korean, for example, you'd use -c KR -l ko-KR.

By default, the example just lists the devices associated with your account. You can also specify one of several other commands:

  • ls: List devices (the default).
  • mon <ID>: Monitor a device continuously, printing out status information until you type control-C. Provide a device ID obtained from listing your devices.
  • ac-mon <ID>: Like mon, but only for AC devices---prints out specific climate-related information in a more readable form.
  • set-temp <ID> <TEMP>: Set the target temperature for an AC device.
  • turn <ID> <ONOFF>: Turn an AC device on or off. Use "on" or "off" as the second argument.
  • ac-config <ID>: Print out some configuration information about an AC device.

Credits

This is by Adrian Sampson. The license is MIT. I also made a Home Assistant component that uses wideq.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wideq-1.0.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

wideq-1.0.0-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file wideq-1.0.0.tar.gz.

File metadata

  • Download URL: wideq-1.0.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for wideq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4608a6311c6d775c8a557efc20481091cc252e15f9f4c5bfc657afb3a4aa6f03
MD5 707c9a219dbe78b019805b6d9e368b20
BLAKE2b-256 560f5d5a7add5d608fb3cc5b869117a08097855205d3dd5dbca6b3798cb71efe

See more details on using hashes here.

File details

Details for the file wideq-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wideq-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for wideq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22fe74ce53a7f6108507abd9866448f842c6f3b56292cb39712d31b12f9867c7
MD5 e982244e1314e9486e5d1cca2d8484b3
BLAKE2b-256 15837e9076f591995ad332b36f583b5266c2b4cbd3170cefc9942392cea2d19d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page