Skip to main content

LG SmartThinQ API client for Korean

Project description

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:

$ git clone https://github.com/gugu927/wideq.git $ cd wideq

$ python3 example.py -c KR -l ko-KR

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.

  • washer-mon <ID>: Like mon, but only for WASHER devices—prints out specific washer-related information in a more readable form.

  • dryer-mon <ID>: Like mon, but only for DRYER devices—prints out specific dryer-related information in a more readable form.

  • dehum-mon <ID>: Like mon, but only for DEHUMIDIFIER devices—prints out dehumidifier-related information in a more readable form.

  • 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 [GuGu927][andy]. The license is [MIT][]. I also made a [Home Assistant component][hass-smartthinq] that uses wideq.

This library originated from [Adrian Sampson][sampson]

[hass-smartthinq]: https://github.com/gugu927/hass-smartthinq [andy]: https://github.com/gugu927 [mit]: https://opensource.org/licenses/MIT [sampson]: https://github.com/sampsyo/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_gu-0.0.1b0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wideq_gu-0.0.1b0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file wideq_gu-0.0.1b0.tar.gz.

File metadata

  • Download URL: wideq_gu-0.0.1b0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for wideq_gu-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 7dca73cd65ca5e526d0cd086fd00f5eaf193da2f9c1a4578526d6eef25e7de6a
MD5 56d16ff3ff12b9a6140b1bca52dc77d9
BLAKE2b-256 74c8067a062a09abd4a1833f1260577330603719182bd70b444555947ebbc80a

See more details on using hashes here.

File details

Details for the file wideq_gu-0.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: wideq_gu-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for wideq_gu-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 c89343f8f9179e595faddc76942df0f1f20af316fd1bbb783125b08d55682418
MD5 46c3acde8fe3f2c3e55c0bffb0a066da
BLAKE2b-256 360defc07e1c668b366627f3928517dfb3763f11a166ca7527fe139291b14363

See more details on using hashes here.

Supported by

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