Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about the LG WiFi Air Condition #37

Closed
psnlk opened this issue May 11, 2020 · 145 comments
Closed

How about the LG WiFi Air Condition #37

psnlk opened this issue May 11, 2020 · 145 comments
Labels
enhancement New feature or request

Comments

@psnlk
Copy link

psnlk commented May 11, 2020

LG Air-conditions are working well with the SmartThinq App, so is it possible to add to the Hassio?

@ollo69
Copy link
Owner

ollo69 commented May 11, 2020

Real problem is not monitoring but control it, exspecially for devices based on APIv2.
I will think about this...

@ollo69 ollo69 added the enhancement New feature or request label May 11, 2020
@psnlk
Copy link
Author

psnlk commented May 11, 2020

Yeah - I just got installed 3 of WiFi AC's today and would be nice to control with Hassio

@ollo69
Copy link
Owner

ollo69 commented May 11, 2020

If your AC is based on APIv2 it will be very hard. May be you will be able to monitor and integrate control with some device like broadlink---

@psnlk
Copy link
Author

psnlk commented May 12, 2020 via email

@ddellspe
Copy link

ddellspe commented Jun 6, 2020

I've been looking through some states (snapshots) of my new Portable AC and it looks like monitoring is possible. I'm happy to help in any way that i can to see if there's a way to also incorporate control. It looks like it's only available on the v2 api, unfortunately.

@fabro21
Copy link

fabro21 commented Jun 17, 2020

Hi!, thanks a lot for your work, looking forward to getting control of my 2 ACs.

@spaya1
Copy link

spaya1 commented Jul 3, 2020

Would be great if this could be integrated, I got 3 split units, 2 based on api1 and 1 based off api2. Thanks for the hard work!

@Tomek985
Copy link

Tomek985 commented Jul 4, 2020

I got window AC, it must be on new api2:
Found unsupported LGE Device. Name: Air Conditioner - Type: AC

Let me know how can I help to get it integrated, can help with debugging

@Lennypit
Copy link

wideq from https://github.com/gladhorn/wideq/tree/api2_merged find my LG PC12SQ AC (APIv2). Other Versions from wideq dont find all LG ThinQ Devices. An AC integration would be great. Thanks for your Integration

@ChefkeGremmen
Copy link

I also have an LG AC, let me know if I can test anything.

@karsie1994
Copy link

Same for me, I have two LG AC's and would love to have them in HA!

@ollo69
Copy link
Owner

ollo69 commented Sep 15, 2020

I'm thinking about it, I will do but I need some additional free time, currently I'm very busy.
The point is that controlling is really more complex than monitoring because I need to avoid unwanted command and combine send command with monitored values.
Probably in the near future I will start introducing some command for the supported device, that is the starting point to control also AC.
For sure I will come back here because during dev I'll need some support, unfortunately I don't have a LG AC.

@spaya1
Copy link

spaya1 commented Sep 15, 2020

Count me in!

@ChefkeGremmen
Copy link

Does anybody already have a 'monitoring' example? Fir eaxmple: I would like to have the current room temperature available.

@ollo69 ollo69 mentioned this issue Sep 25, 2020
@keiranharris
Copy link

keiranharris commented Sep 25, 2020

Hi all. Just to chime in...

ive been using sampsyo’s repo (the original author of wideQ i believe) on my LG ducted aircon (model numbers below) for two years now - it works flawlessly for me for control (....but the last time i checked on his repo, power monitoring was still a work in progress). I guess that might mean my setup is using v1 of the API? (Q: how to tell?)

In any case, maybe it will help some of you also >>
https://github.com/sampsyo/hass-smartthinq
AND
https://github.com/sampsyo/wideq

It looks like this repo here might have a bit more active dev going on (and perhaps easier integration with hass) so ill watch this issue carefully to see if its better for me to switch over! Thanks for your efforts @ollo69 !

Keiran

BTW- My LG aircon specs are:
Outside-Unit Model: B55AWY U3G6
In-Roof Model: B55AWY N7G5A
In-Roof WiFi Dongle: PWFMDD201 (model LCW-005)
Indoor Control Panel: PREMTB001 / PREMTBB01

@davewatson91
Copy link

Hi @ollo69 - also flagging my desire to help with this where I can - this is high on my priority list to get going.

I'm far from a professional, but can certainly dabble with code & getting things going.

@marcoevcom
Copy link

Count me in to help testing or even sniffing data from the AC's. I've got 2 of them working fine in the ThinQ app also integrated to Alexa. But having all this in HA would be very nice.

@wishie
Copy link

wishie commented Nov 1, 2020

I've just ordered this unit and happy to try and help once I get it installed. I am chasing the Wi-Fi module at the moment.

@viniciuscordeiro
Copy link

I'm here available to test this integration also. I've just installed smarthinq-sensors and received log below.

I've 2 AC units and both are APIv2 and I'm using wideq from https://github.com/no2chem/wideq and I can get all information and send to HA through MQTT, but still can't control them.

2020-11-23 09:41:53 INFO (MainThread) [homeassistant.setup] Setting up smartthinq_sensors
2020-11-23 09:41:53 INFO (MainThread) [homeassistant.setup] Setup of domain smartthinq_sensors took 0.0 seconds
2020-11-23 09:41:53 INFO (MainThread) [custom_components.smartthinq_sensors] 
-------------------------------------------------------------------
smartthinq_sensors
Version: 0.5.10
This is a custom component
If you have any issues with this you need to open an issue here:
https://github.com/ollo69/ha-smartthinq-sensors/issues
-------------------------------------------------------------------
2020-11-23 09:41:53 INFO (MainThread) [custom_components.smartthinq_sensors] Initializing SmartThinQ platform with region: BR - language: pt-BR
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors] SmartThinQ client connected
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors] Starting LGE ThinQ devices...
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Ar Escritorio - Type: AC
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Ar Suite - Type: AC
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors] Founds 2 LGE device(s)
2020-11-23 09:41:57 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.smartthinq_sensors
2020-11-23 09:41:57 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.smartthinq_sensors
2020-11-23 09:41:57 INFO (MainThread) [custom_components.smartthinq_sensors.sensor] Starting LGE ThinQ sensors...

@jacekpaszkowski
Copy link

Hi, any progress with v2 API AC?

@ollo69
Copy link
Owner

ollo69 commented Dec 13, 2020

It's winter here, climate not required :)
Just joking, but this last months I was really busy with my job, I hope that I will have some time to dedicate on Christmas holidays...

@THH1986
Copy link

THH1986 commented Jan 8, 2021

Hello! I'm really confused about how to get my LG AC working with HA...

My system information:

Host Operating System | Home Assistant OS 5.10 Update Channel | stable Supervisor Version | 2020.12.7 Docker Version | 19.03.13 Disk Total | 57.8 GB Disk Used | 3.9 GB Healthy | true Supported | true Board | rpi4-64 Supervisor API | ok Version API | ok

What I did until now:

  1. Installed https://github.com/sampsyo/hass-smartthinq
  2. Created folder wideq and cloned https://github.com/sampsyo/wideq to the folder
  3. Added the following text to my config.yaml
    smartthinq: token: mytokencode region: DE language: de-DE

However, I dont get any entities, nor something else.

Perhaps I'm just missing something important... is there a reliable step by step guide how to proceed?

@KTibow
Copy link
Contributor

KTibow commented Jan 8, 2021

@THH1986 Wrong place for support. Did you correctly replace the token? Any log errors?

@woocashd
Copy link

I got 3 indoor AC units which can be controlled via Smarthinq APP.
I would love to got it integrated in HA.

If you need some help with testing, please let us know.
I think that all the users of those appliances will be happy to buy you a coffee! :)

Thank you in advance!

@gergogyerek
Copy link

gergogyerek commented Jan 29, 2021

just sent you 2 coffees, to make the ac integration project move forward :) thanks in advance
(i'm happy to send couple more coffees :) )

@wagnerfontes2
Copy link

If you can make it work for air conditioners it would be great (coffees intended). Probably much simpler for me than buying/configuring IR blasters.
In case you need a tester in Brazil, count me in!
Thanks in advance!

@hros
Copy link

hros commented Feb 10, 2021

joining the long list of requests for a/c support
the repo mentioned (hass-smarttinq) does not seem to work
but perhaps joining forces, and using the work on a/c in climate.py together with recent work on v2 wideq would reduce the effort needed
I'd be happy to help

@lemojack
Copy link

Hi @ollo69,

Thank you so much for this project.

My unit DM09RP.NSJ DELUXE

DM09RP.zip

Hi @ollo69,

Thanks for this integration, amazing work!

I noticed that I can't start the aircon using power on button in HA. The operation state show only OFF. So, to turning on the air con i need to use one of the other options ( cool, heat, etc ).

I was wondering if you could also add support for additional feature, like IONIZATION, JET and swing option from LEFT to RIGHT ?

image

@funnymataleao
Copy link

Wow, it works with my LG Dual Inverter Air Cond. But it's like the buttons are pressed multiple times when I switching modes. How can I fix this?

@ollo69
Copy link
Owner

ollo69 commented May 24, 2021

This says to me there is probably an "update devices" call that we could probably be using once per... 10 minutes?

I implemented this in last release. Could you try if current temperature is now updated (every 10 minutes of course)

@ollo69
Copy link
Owner

ollo69 commented May 24, 2021

But it's like the buttons are pressed multiple times when I switching modes. How can I fix this?

Please open dedicated issue and provide more details, I will not be able to track all issue using a single thread.

@Tomek985
Copy link

However, I run my AC mostly in Economy mode and there doesn't appear to be option for that. I play with that and report back

I think that economy is mapped as AUTO

Yes it is, works great! One thing I noticed that LG unit slightly misrepresents its own "room" temperature (also observed in Thinq) and therefore not too reliable. It is LG issue, your integration works great! Seems faster response than app itself.
Can I buy you a beer?

@ollo69
Copy link
Owner

ollo69 commented May 24, 2021

Can I buy you a beer?

Only coffee here. I have to keep awake to work on integration🤣

@DivanX10
Copy link

DivanX10 commented May 24, 2021

  1. Updated to the latest version v0. 8. 1. Checked the operation of the air conditioner. The room temperature sensor in the air conditioner still does not update the status, waited for 10, 60 or more minutes. The Home Assistant shows the correct temperature only after syncing in the LG SmartThinQ mobile app.
  2. There was a washing machine switch, but I didn't understand its meaning. It shows the same as the power-on sensor, i.e. it essentially duplicates the washing machine status sensor. The switch does not turn off or turn on the LG AI DD F2V9HS9W washing machine

@ollo69
Copy link
Owner

ollo69 commented May 24, 2021

  1. Updated to the latest version v0. 8. 1. Checked the operation of the air conditioner. The room temperature sensor in the air conditioner still does not update the status, waited for 10, 60 or more minutes. The Home Assistant shows the correct temperature only after syncing in the LG SmartThinQ mobile app.

Ok, just a tentative. I will look for other solution if available.

2. There was a washing machine switch, but I didn't understand its meaning. It shows the same as the power-on sensor, i.e. it essentially duplicates the washing machine status sensor. The switch does not turn off or turn on the LG AI DD F2V9HS9W washing machine

The switch is to turn washer machine off (cannot be turned on). It work for me, but, as written in the change log, I can only test it on ThinQ1 device . When the machine is off the switch should be unavailable, when it is on you should be able to switch. Please provide error log when you action the switch if available.

@DivanX10
Copy link

DivanX10 commented May 24, 2021

Enabled logging for smartthinq_sensors integration and received logs. For convenience, I saved the logs in a text file.

  1. Logs on the air conditioner LG B09TS. I noticed that this line is responsible for the ionizer 'airState.wMode.airClean': 1.0, где airState.wMode.airClean': 1.0 - the ionizer is on и airState.wMode.airClean': 0.0 - the ionizer is off
    CONDITIONER_LOG.txt

  2. Washing machine LG AI DD F2V9HS9W logs
    WASHING MACHINE_LOG.txt

@ollo69
Copy link
Owner

ollo69 commented May 24, 2021

Enabled logging for smartthinq_sensors integration and received logs. For convenience, I saved the logs in a text file.

You give me the payload, but I was looking for possible error/info during washer power switch action.
It is clear to me how to set airclean and ionizer, but I will work on this features later, when all standard control will be ok. It is not clear how to control this features with standard HA control, probably have to be managed as separate switch, I will think about this...

About room temperature, I didn't find any other method to query this value, and it is hard for me because I don't have a LG AC device so I'm not able to perform any tests. For the moment I don't have any possible solution for this, but suggestion are welcome.

@kzagatti
Copy link

Enabled logging for smartthinq_sensors integration and received logs. For convenience, I saved the logs in a text file.

You give me the payload, but I was looking for possible error/info during washer power switch action.
It is clear to me how to set airclean and ionizer, but I will work on this features later, when all standard control will be ok. It is not clear how to control this features with standard HA control, probably have to be managed as separate switch, I will think about this...

About room temperature, I didn't find any other method to query this value, and it is hard for me because I don't have a LG AC device so I'm not able to perform any tests. For the moment I don't have any possible solution for this, but suggestion are welcome.

By far this is not the best solution but just giving a suggestion, what if instead of using the AC's temperature sensor you could set HA to read from another sensor (such as a DHT22 attached to a NodeMCU or even local weather)?

@ollo69
Copy link
Owner

ollo69 commented May 25, 2021

By far this is not the best solution but just giving a suggestion, what if instead of using the AC's temperature sensor you could set HA to read from another sensor (such as a DHT22 attached to a NodeMCU or even local weather)?

I think you can already do something similar using the native generic_thermostat entity. While this is a custom integration and we could do whatever we want, using an external sensor for climate temperature is not permitted in HA implementation.

@DivanX10
Copy link

DivanX10 commented May 25, 2021

You give me the payload, but I was looking for possible error/info during washer power switch action. I have enabled the debug record and see no errors, and if I insert error instead of debug, there are no records. How to catch records about errors?

logger:
  default: fatal
  logs:
# Enable debug integration record smartthinq_sensors
    custom_components.smartthinq_sensors: debug

@ollo69
Copy link
Owner

ollo69 commented May 25, 2021

With log level set to debug (as you did) search for a string like: Setting new state: and all subsequent message.

@DivanX10
Copy link

With log level set to debug (as you did) search for a string like: Setting new state: and all subsequent message.

I found the line Setting new state. I attach logs. I hope this is what you need.

2021-05-25 17:34:58 DEBUG (SyncWorker_13) [custom_components.smartthinq_sensors.wideq.device] Setting new state: {'command': 'Set', 'ctrlKey': 'WMOff', 'dataSetList': {'washerDryer': {'controlDataType': 'POWEROFF', 'controlDataValueLength': 1, 'controlDataValue': 0}}} - None - None - None

'deviceState': 'E', 'snapshot': {'washerDryer': {'initialBit': 'INITIAL_BIT_OFF', 'standby': 'STANDBY_OFF', 'courseFL24inchBaseTitan': 'COTTON', 'initialTimeMinute': 0.0, 'preState': 'POWEROFF', 'error': 'ERROR_NO', 'dryLevel': 'NOT_SELECTED', 'creaseCare': 'CREASECARE_OFF', 'remainTimeHour': 0.0, 'smartCourseFL24inchBaseTitan': 'NOT_SELECTED', 'preWash': 'PREWASH_OFF', 'steam': 'STEAM_OFF', 'state': 'POWEROFF', 'rinse': 'NO_RINSE'

@ollo69
Copy link
Owner

ollo69 commented May 25, 2021

And your washer is not powerd off?

@DivanX10
Copy link

And your washer is not powerd off?
My washing machine does not turn off through the Home Assistant switch, only if you turn it off physically through the button, or it will turn off itself if you do not touch it for 10 minutes after turning it on

@ollo69
Copy link
Owner

ollo69 commented May 25, 2021

You don't have the option to turn it off from phone application?

@DivanX10
Copy link

In the SmartThinQ mobile app, I can't turn the washing machine on or off, only physically via the power button. I can only start or stop washing and then, provided that the remote start function is enabled. If the remote start function on the washing machine is not enabled, then you can not start washing via the phone.

@ollo69
Copy link
Owner

ollo69 commented May 25, 2021

In the SmartThinQ mobile app, I can't turn the washing machine on or off

Ok, so you cannot help me in this test and you don't need the switch. Strange because the command is defined, but that's it... Instead my washer can be turned off from phone app when on.

@keiranharris
Copy link

Slightly off topic but i was wondering if your code supports digesting the energy consumption data that the API spits out

Depend if this information is in the payload. You should enable debug and provide information as explained here so that I can analyze the content a check if is possible to extract this information and create related sensors.

Took me a few days - but i got your JSON (BTW great experience switching over from sampsyo to your code. Much nicer working in the 'integrations' GUI post install, great work!). To remind you, mny request was about possibility of pulling energy consumption data (KWh). I know my unit provides that on the API.

Heres the JSON you asked for.
--> LINK <--

My model is:
Outside-Unit Model: B55AWY U3G6
In-Roof Model: B55AWY N7G5A
(although i see from the logger debug, its reporting as: DUCT_626301_WW)

Happy to open a new issue if you prefer to track development of this feature request outside of this mega-thread.

As usual, thanks a million!!!

@ollo69
Copy link
Owner

ollo69 commented May 30, 2021

Heres the JSON you asked for.

You give me JSON info, but what I need is debug log, because I need to understand if and where this information is available and the only way to do this is analyzing the data sent while running.

Happy to open a new issue if you prefer to track development of this feature request outside of this mega-thread.

Agree, so we will track progress better.

@LongDono
Copy link

I would suggest this issue be closed and separate issues created for everything that has arisen in this megathread, to save @ollo69 and others sanity. ;)

@ollo69
Copy link
Owner

ollo69 commented May 30, 2021

I would suggest this issue be closed and separate issues created for everything that has arisen in this megathread, to save @ollo69 and others sanity. ;)

I approve this suggestion and close this thread :)

@james28909
Copy link

sorry for digging this old thead. @ollo69 i have an lg air conditioner and most everything works great. i cannot set the mode to energy saver/eco. i have tried to get the debug log output but i think i am missing something. can you please explain what i need to do to get you the data you need to help my situation? thanks in advance. also i am running fully updated home assistant os on hyperv and latest update for the lg integration. please advise

@KTibow
Copy link
Contributor

KTibow commented Sep 13, 2022

  1. integrations panel https://my.home-assistant.io/redirect/integrations/
  2. lge - overflow menu - download diagnostics
    image

@james28909
Copy link

james28909 commented Sep 13, 2022

ok i think i got the json file. what do i do next?

config_entry-smartthinq_sensors-0985ecb15298d2351b84841a37aa7a10.zip

@KTibow
Copy link
Contributor

KTibow commented Sep 13, 2022

ask @ollo69 to take a look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests