Skip to main content

Reverse-engineered client for the LG SmartThinQ API.

Project description

PyPI CircleCI

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.

On first run, the script will ask you to log in with your LG account. Logging in with Google does not seem to work, but other methods (plain email & password, Facebook, and Amazon) do.

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.1.1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

wideq-1.1.1-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wideq-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ec3ee5cf3c249d2704b0fad11db103ce8074b6330b11469cfc09ee143a817cef
MD5 feb70b781e27299b712a5bcdccf2e4c8
BLAKE2b-256 0beb0f6a45df92e97432de203b891f1f32d0450f51657edaebfa1af0081643bf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wideq-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b18fe967c644df28eb4b3084c6d5939c1b7e7fe03867eadcb52bc7e5c6011c60
MD5 9b8132c99fe080ff8b5af6cce9cc923b
BLAKE2b-256 12b16ebf20431d8b7b554b688573f913fa552b2cd4a3fe89f96466a9dd9d3555

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