Skip to main content

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 or refrigerator device.
  • set-temp-freezer <ID> <TEMP>: Set the target freezer temperature for a refrigerator.
  • 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.

Metadata

Release files for wideq 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wideq 1.5.0
File Size Uploaded
wideq-1.5.0.tar.gz 37.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wideq 1.5.0
File Interpreter ABI Platform
wideq-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.4 kB

Release files / wideq-1.5.0.tar.gz

Download URL wideq-1.5.0.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
52b15290848a5b86d53950591fadbc9d415e571edba3f4fdd084f25d50ed5b9b
BLAKE2b-256 checksum
How to use checksums
ebda8ec6e7974f232bd49c63b73ed4603061276a1422389728fd760436693bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.24.0

Release files / wideq-1.5.0-py3-none-any.whl

Download URL wideq-1.5.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca80f649a9555e0e2806f0d8e650841039adbd6641bf638b3d20d37ec184bb92
BLAKE2b-256 checksum
How to use checksums
3382584485f0cec1e2fa6fdf9fa37a75c22299f1cf298f87fce321e5055c33fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.24.0

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page