LG Smartthinq Air Conditioning

Hi is there any way to get Home Assistant to integrate with LG Smartthinq APP?

I have some units LG Air Conditioning with lg smarttinq and I would like add HA

I found some information about API -


Hi @mig - did you get any further on this? We have a LG air con system about to be installed and of course i want to integrate to HomeAssistant.

update here?

Yes, in the last 2 months ive done quite a bit of research into this, including finally getting a hold of the right person at LG who knows what he is talking about (on his HVAC side of the fence anyway - perhaps less so on the home automation side, but thats ok as thats my job here and i think i can bridge that gap)

Options seems to be:
(I should note that my system is DUCTED system (B55AWY-7G5A). Not the standalone wall units, the advice is probably very different there)

1/ smart IR relay (such as sensibo.com). Sensibo is home-assistant capable (a ‘component’ has been written). For my AC unit, which is ducted, there is still some confusion is if could use this. Apparently not all wall control panels have an IR sensor… then theres always the risk that the sensibo doesn’t speak the exactly correct IR codes that my wall panel is expecting… wont know until i buy probably. But this should give you a LOT of control over all the functions (anything the IR remote can do basically), its cheap, and its low fuss.

2/ a dry contact switch setup. This is like hotel rooms where the A/C only springs to life when you flip a switch (such as inserting hotel keycard into slot). In our case the switch could be flipped by a z-wave switch (such as the Aeotec Z-Wave Nano Switch), which would complete the circuit on the LG dry contact switch (either PDRYCB400 or PDRYCB500, probably the 400). The 500 is modbus protocol, so i think this assumes you have a “thing” (not sure what exactly yet) that speaks modbus to your A/C system on one side, and something (z-wave? IP?) on the other side where home-assistant can plug into. There is modbus support in home-assistant i see (https://www.home-assistant.io/components/modbus/). This setup gives you control over MOST of the things you would probably need: on/off; temp; fan speed (on 500 only). More research needed is here. I have a bunch of docs the LG tech has sent that i need to spend some time understanding, if anyone wants to help me let me know! The LG tech has strongly advised this is the best and most reliable way to go. Ive attached a screenshot of the LG dry contact units, highlighting the ones relevant to us.

3/ get the LG wifi dongle (part: PWFMDD201), which is what this post was originally about. However if you go this path, currently you can ONLY control your system with the LG App… which if you are anything like me rubs me the wrong way, we of course wish to integrate with home-assistant directly so we don’t need to manage all those bespoke apps, one per vendor/device. The LG tech did tell me unofficially that integration is going to be opened up against google home and alexa “shortly” (his estimate 3 to 6 months) but i wouldn’t bet the house on this… and who knows where the home-assistant community would fall in on this decision - perhaps LG view us as too small a community to warrant the dev to open up an API for us.

**LATER EDIT: ** reading back on this a year later, the above paragraph is wrong (about how it can ONLY be controlled by LG app). You can hijack this LG app’s authentication token and import into home assistant allowing full control from within home assistant… its what im (and many others now are) doing… see the sampsyo github code [ https://github.com/sampsyo/hass-smartthinq ] for full step by step instructions. So if you can get your LG aircon accessible inside of the LG smartphone app (either via buying a wifi dongle like i did above for my ducted system, or the units with wifi natively in them), then its a safe bet to assume you can also get it working in home assistant, so, option 3/ is the way to go! However, you do need to know your way around linux / github *

Hope this helps someone.
Its a bloody vortex staring into this.
Cant believe how complicated this is, and how hard it is getting the right info.

Oh, thnx for the info, well, don’t have the systems yet, just creating offer… 1 company offers me the LG systems indeeed it included a WiFi module with of app…

Isn’t it the same as this then : https://github.com/sampsyo/hass-smartthinq

Seems LG is already connected to Google assistant, but still as a service, not as entities… So you always have to say first: talk to LG…


Errrm. Thanks. I think.

Just updating here - finally had some time and integrated my LG ducted system yesterday using ‘sampsyo’ github code (which integrates against the wifi donge), and its working great! seems more responsive TBH than using the LG SmartThinQ app (well, it couldnt really be worse!). See the top left panel for what it looks like and the controls i have available to it

hi, i am going to buy lg air conditioners, i wanted to know how to integrate them with home assistant

Its pretty simple if you know your way around github and linux generally. You essentially have to
1/ download two chunks of code to a certain hass directory from github,
2/ execute the wideq script on the CLI (to get your API key),
3/ make some changes to configuration.yaml,
4/ reboot,
5/ add the now detected device into lovelace (GUI).

All instructions here: https://github.com/sampsyo/hass-smartthinq

Good luck!

Apologies for dumb questions. I have 4 x A/C units and can use the LG Thinq App to control them. I have HA installed on a VM on one of my Hyper-V hosts. I’m based in the UK.

I can’t seem to run the wideq python script to get my API key as I can’t run Python from Terminal. I’ve also tried the LG Smart Thinq Appliances plug-in to see if that will extract the API but it only appears to work in the US?

Please can anyone shed any light on what I’m doing wrong? Many thanks in advance.

Give us a Screenshot? Or error message?


I had to manually install Python3 to get that element working but I have a new error now. I also uninstalled via HACs and cmdline and reinstalled as per the instructions on GitHub.

I get a ModuleNotFoundError - No module named ‘requests’ when I run.

I tried with what I believed were the UK settings but I get the same error using the US ones.

I’m sure I’ve missed something really daft. Many thanks, Phil.

I was able to get the SMartThinq LGE Sensors via HACS to at least suggest a URL but that was definitely US only as it said my account was registered in another territory so I didn’t get a URL back as a token.

Hey phil, so thats a python missing library error (‘requests’). What platform are you on? In on ubuntu linux and never had a drama - but that has python all ready to go for me. In any case its easy to fix via ‘pip’ but it worries me what else you might be missing. Start with fixing this though. See the upvoted answer here for how to install that missing library https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests

Just so you know you are on the right track heres my install notes that I documented… shows you what you WILL get when you fix your missing library

1 Like

@keiran.harris - Thank you soooo much for your help!!!

pip3 install requests #Installed the requests library

Some messing around with UK / GB / EU

python3 example.py -c GB -l en-GB # generated URL and I was able to follow the instructions.

Added to Config, restarted and hey presto! 4 new entities!

Thank you very much.


There you go! Enjoy!

1 Like

I installed the component, but the air conditioners don’t detect me. home assistant is installed on raspberry so i can’t do the manual installation. someone help me?

Hi brazil. Just cause you are on a raspberry doesnt mean it’s a different process. Where exactly are you falling down? Does the wideq process complete? Do you get a token? See my cheatsheet instruction screenshot above.

Same problem here. Followed The guide to a T. The log showed the problem detailed here. I fixed that and still no dice.

Any ideas?