Hi Brazil885! Yes, I’ll try help you in english (Google Translate can help me, lol), so I apologize for any mistakes with the language.
In reality “hassio” works with background linux. However, I spent days and nights researching and trying to understand what nobody explains, which is how to give the command in Python inside the Home Assistant.
First of all, copy the “smartthinq” and “wideq” folders that you downloaded from the repository to the “custom_components” folder, which in turn must be inside “config”!
Now that the secret comes, lol … After a lot of research and several attempts, I finally found out that I needed to use an “Add-on” in the Home Assistant, called “Portainer”, that’s where you’ll run example.py with Python.
To do this, go to “Surpevisor” >> “Add-on Store” and search for “Portainer”. After installing it, go to “Configuration” and add these two lines:
log_level: info
agent_secret: YOUR PASSWORD FOR HOME ASSISTANT
Save. Returns to “Info”. Enable “Show in sidebar” and disable “Protection mode”. You can now start “Portainer”.
Open the “Portainer” in the sidebar. Click on “Primary” on the home screen, then click on “Container”, this will show “homeassistant”. In the “Quick actions” column, click on Exec Console (> _), then on “Command”, select “/ bin / ash” and click “Connect”.
The console written: “/ config #” will open. Then type: “cd custom_components” (without quotes) and press Enter. The console will then display: “/ config / custom_components #”. Type now: “cd wideq” (again without quotes). At that moment you will be inside the “wideq” folder under “custom_components”. Now just type the command “python3 example.py -c US -l en-US” with your country and language. This will return a link, which you must copy and paste into your browser. This link will open a LG Smartthinq login screen. Log in with your username and password, (it will not work if you are logging in with Google) this will open a blank screen, but it does not matter, as you will only need what is written in the address bar. Copy the code between “refresh_token =” and “&”.
Now just open the file “” and type the following lines:
smartthinq:
token: YOUR TOKEN CODE
region: YOUR COUNTRY
language: YOUR LANGUAGE
- Attention to the tabulation of the lines above.
Save the file. Return to the Home Assistant, validate the configuration and restart the server.
After restarting the home assistant, your air conditioning should be set to “Unused entities”.
I hope everything goes well, but if you encounter any problems let me know so I can try to help you.