LG ThinQ API Test Application (python)
$ git clone https://github.com/YOGYUI/python_thinq_api_tester.git
Python
3.7.x ~ 3.11.x (application is developed on 3.10.11 environment)
Python Package below are necessary.
requests
paho-mqtt
pyopenssl
PyQt5
$ pip install -r requirements.txt
- Replace all required strings like refresh token, oauth secure key in main.py
See link to get these values from ThinQ API server.api_key = "replace to your api key" api_client_id = "replace to your api cliend it" refresh_token = "replace to your thinq refresh token" oauth_secret_key = "replace to your oauth secret key" app_client_id = "replace to your application client id" app_key = "replace to your application key"
- Run application
$ python3 main.py
- Press Start button to initiate ThinQ API.
At first time, certification (*.pem
) files will be downloaded on local storage (Include/Cert/) like below.
When initialized, list of devices will be showed. - Send command with
Data Key
andData Value
.
Only single home in ThinQ configuration is now available.
(Multiple home configuration is not implemented)