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
.
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>
: Likemon
, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wideq-1.4.0.tar.gz
.
File metadata
- Download URL: wideq-1.4.0.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71cc152469d8df5647d3eab50c670be96f809cb10190c371a587e06c9a8bf0b |
|
MD5 | b6406539ed09d07a1c9213f06e732239 |
|
BLAKE2b-256 | e8db6f0095247eb2be3f3653cb588390a7f29645948cd90e104d2eccaaad1f8c |
File details
Details for the file wideq-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: wideq-1.4.0-py3-none-any.whl
- Upload date:
- Size: 65.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.21.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dfc3e3fc5fe1e5c97ebfcf7ff644d5cd57eb227a21a7eb87bfd4bf2c0207caf |
|
MD5 | 78cd6bc92885607b6b0978b851cf3889 |
|
BLAKE2b-256 | e8aded9d507097f628afec4097cc4d0ed2c8b4834274f5abe98aa470a1e767ec |