Closed psnlk closed 3 years ago
Real problem is not monitoring but control it, exspecially for devices based on APIv2. I will think about this...
Yeah - I just got installed 3 of WiFi AC's today and would be nice to control with Hassio
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---
How do I find that my AC is APIv1 or v2?
On May 11, 2020, at 11:16 PM, ollo69 notifications@github.com wrote:
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---
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ollo69/ha-smartthinq-sensors/issues/37#issuecomment-626852605, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7U5SRTGOJNLBCTDJ47MR3RRA2Y7ANCNFSM4M6BYZ5Q.
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.
Hi!, thanks a lot for your work, looking forward to getting control of my 2 ACs.
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!
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
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
I also have an LG AC, let me know if I can test anything.
Same for me, I have two LG AC's and would love to have them in HA!
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.
Count me in!
Does anybody already have a 'monitoring' example? Fir eaxmple: I would like to have the current room temperature available.
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
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.
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.
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.
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...
Hi, any progress with v2 API AC?
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...
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?
@THH1986 Wrong place for support. Did you correctly replace the token? Any log errors?
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!
just sent you 2 coffees, to make the ac integration project move forward :) thanks in advance (i'm happy to send couple more coffees :) )
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!
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
Another Brazilian looking to help out testing and maybe implementing something for this integration to work for AC units (got two similar models which can be controlled via Google Assistant, if that helps). I'm new to Hass and Python, but I'm a seasoned developer so I might be of some help, if I get free time on covid weekends? :)
Just got one of those new LG dual inverter units , add me to the list requesting support . I'm free to help test to .
I also got two LG dual inverter AC units. The LG app works fine. For HA, I tried sampsyo/hass-smartthinq, but it seems that this uses APIv1, as it doesn't show my devices. I do see my devices if I try the wideq fork from pneumaticdeath/wideq (api2_rebased branch). So I assume my devices are only on APIv2.
This project looks really promising; it would be really great to have a good LG AC integration for HA.
If there is anything I can do to help/test, let me know.
To start working on this, I need to collect the JSON Info because normally there are different models with different options and the JSON info should describe them. In HA log during startup, you should find a line like this:
INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: MYAC - Type: AC - InfoUrl: https://......
If you don't see this line probably it is because your logger level is set to warning. In this case update your configuration.yaml
logger settings in this way:
logger:
default: warning
logs:
custom_component.smartthinq_sensors: info
and restart HA.
You should open in the browser the InfoUrl
provided there, this should automatically start the download of a file.
Take the file and attach in this thread, providing also the information of your AC model.
Hi @ollo69,
I have adjusted the configuration and restarted HA but don't seem to find the line you mention.
logger: default: warning logs: homeassistant.components.mqtt: debug custom_component.smartthinq_sensors: info
My other devices (on api v1 are being detected).
The only thing I see after the change of logging is this:
2021-04-11 16:39:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Are configuration lines correctly indented? Indentation is important in yaml file.
yeah, sure, otherwise it wouldn't compile the config file.
I also downloaded the home-assistant.log and searched there, but no info.
to confirm this is how I see it:
Also example from the Mqtt component that has debug logging, showing the INFO line.
2021-04-11 16:39:23 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor 2F7876_ENERGY_TotalStartTime
Also confirmed that the name of the component is correct:
/usr/share/hassio/homeassistant/custom_components/smartthinq_sensors
Try just setting this:
logger:
default: info
and remove or comment all the other lines. You should find a lot of information, also related to your api_v1 working devices.
Try just setting this:
logger: default: info
and remove or comment all the other lines. You should find a lot of information, also related to your api_v1 working devices.
you blocked my Hassio for a bit, but all good now 👍
LG PC09SQ
But INFO is not correct, they all say not supported...
2021-04-11 17:06:24 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Living Room - Type: AC - InfoUrl: 2021-04-11 17:06:24 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Office - Type: AC - InfoUrl: 2021-04-11 17:06:24 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Bedroom - Type: AC - InfoUrl:
However the website is different.
Unsuported v2: https://objectcontent.lgthinq.com/... Unsuported v1 (in reality supported): InfoUrl: https://eic.lgthinq.com:46030/api/webContents/..
To start working on this, I need to collect the JSON Info because normally there are different models with different options and the JSON info should describe them.
Here is the file for my LG LP1419IVSM - 14000 BTU Dual Inverter Smart Wi-Fi Portable Air Conditioner: 6679db43-8ec1-4d5b-b215-eeb4a6e975b6.zip
Thank you!
Hi.
First, let me thank you for your effort. Much appreciated!
If it would be of any help, my setup consists of LG DUALCOOL DELUXE INVERTER 2.5kW and LG DUALCOOL DELUXE INVERTER 5.5kW. I attach JSON files retrieved from infoUri's: lg-dualcool-deluxe-inverter.tar.gz When setting log level to debug I can see also JSON object with all devices, they are all visible as: "modelName": "RAC_056905_WW", "deviceType": 401, "deviceCode": "AI01"
Regards, Piotr
Hi. Great that you are working on this!
I have 2 units:
I have downloaded the JSON files for the 2 units and put them here: https://www.dropbox.com/sh/9wo25h5z5za6o1v/AAB47xCZ9sET0Hcr9Iw7Ju0Da?dl=0
Let me know if I can do anything else to support this.
Hi, i have same devices as @realny. Installed last year so they use V2 API. I'm looking forward for working solution. Thank you all for the effort!
Ready to help here too. Have seven different dual inverter units from 9k to 36k btus.
On Sun, Apr 11, 2021, 13:27 jacekpaszkowski @.***> wrote:
Hi, i have same devices as @realny https://github.com/realny. Installed last year so they use V2 API. I'm looking forward for working solution. Thank you all for the effort!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ollo69/ha-smartthinq-sensors/issues/37#issuecomment-817333959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2YTL6Y3XSOJYWRBTPSTTTIHEVJANCNFSM4M6BYZ5Q .
Hey @ollo69 - im a (mostly) happily working user on sampsyo code. So the working theory is this might mean im on v1 of the API (also, im in Australia if that matters, if its the LG region dictating the API version?).... in saying that, is there benefit me also getting you my device json so your update can be all encompassing?
Hey @ollo69 - im a (mostly) happily working user on sampsyo code. So the working theory is this might mean im on v1 of the API (also, im in Australia if that matters, if its the LG region dictating the API version?).... in saying that, is there benefit me also getting you my device json so your update can be all encompassing?
It appears it is unrelated to region, as I'm in Aus, and have a V2 ducted unit. It appears to be more related to date of manufacture, someone may be able to provide more input though.
I also thinks is more related manufacturing date, or most probably to model project date. Newest model are probably based on API_v2, oldest on API_v1. Fortunately here we are able to support both API, so it could be good if we can collect some json_info for device that still use API_v1.
I've attached the json for both of my units, one is a V1 (which I had working with an older integration) and one is V2 which i've never been able to get sorted out. lgeaircon.zip
(drive link just in case) https://drive.google.com/file/d/1mLF-LLi4GzLOq3CAYApRVuHU_X7w53EN/view?usp=sharing
Hello,
i have 3 LG devices (2 different models). Please see HA logs and attached files, but none of this is availabe in HA. I pretty sure that all of my devices use API_v2.
-------------------------------------------------------------------
smartthinq_sensors
Version: 0.6.7
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
-------------------------------------------------------------------
2021-04-12 10:07:02 INFO (MainThread) [custom_components.smartthinq_sensors] Initializing SmartThinQ platform with region: PL - language: pl-PL
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] SmartThinQ client connected
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] Starting LGE ThinQ devices...
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Sypialnia - Type: AC - InfoUrl: https://objectcontent.lgthinq.com/eaf981d1-8ed9-4489-8cee-a9c8688d2bd1?hdnts=exp=1675895129~hmac=e4a343c068ad6704352246e9dad3327c0e28a9df0560c19934a38a91d322f456
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Salon - Type: AC - InfoUrl: https://objectcontent.lgthinq.com/f0720774-1d2d-48df-9fc7-7e0388f48c88?hdnts=exp=1675895129~hmac=c7dc98567688df18750db37eb0533dc54ac04e7f6408a1a7471cf57e2debbaab
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Pokój - Type: AC - InfoUrl: https://objectcontent.lgthinq.com/adb19eba-0632-4da8-bc53-fd35f48b01c8?hdnts=exp=1675895129~hmac=cdf00eb77c28d3699865393a5ca5c1551bc7cf096e74b8dbd6554f9f29881c3c
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors] Founds 3 LGE device(s)
2021-04-12 10:07:03 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.smartthinq_sensors
2021-04-12 10:07:03 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.smartthinq_sensors
2021-04-12 10:07:03 INFO (MainThread) [custom_components.smartthinq_sensors.sensor] Starting LGE ThinQ sensors...
DM07RP.NSJ
adb19eba-0632-4da8-bc53-fd35f48b01c8.zip eaf981d1-8ed9-4489-8cee-a9c8688d2bd1.zip
DM12RP.NSJ f0720774-1d2d-48df-9fc7-7e0388f48c88.zip
Hope this will help.
Hi @ollo69,
Thank you so much for this project. This is my 24000 BTUs from Brazil. Hope this helps.
Cheers,
Hey ollo69,
Thank you so much for your work . Here is my info/json file , *.txt so it could be uploaded to github
LG Electronics 800-sq ft Window Air Conditioner (115-Volt; 14000-BTU) ENERGY STAR Model #LW1517IVSM
2021-04-14 19:17:12 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Window AC - Type: AC - InfoUrl: https://objectcontent.lgthinq.com/xxxxxxxxxxxxxxxxxxxxxxxxxxx
70187583-14bb-4c69-a27d-dfd0428edb02.txt
Please contact me / @ me if you need any help testing , I'm an experienced tester / computer user and have worked with plenty of devs in the past on Advanced kodi addons and skins . I dont' code , but i can do near anything else .
Hi ollo69, i have a LC AC too. in API V2 I have this : 2021-04-15 15:16:58 INFO (MainThread) [custom_components.smartthinq_sensors] SmartThinQ client connected 2021-04-15 15:16:58 INFO (MainThread) [custom_components.smartthinq_sensors] Starting LGE ThinQ devices... 2021-04-15 15:16:58 INFO (MainThread) [custom_components.smartthinq_sensors] Found unsupported LGE Device. Name: Salon - Type: AC - InfoUrl: https://objectcontent.lgthinq.com/dcb49be3-3b40-40xxxxxxxxxxxxx 2021-04-15 15:16:58 INFO (MainThread) [custom_components.smartthinq_sensors] Founds 1 LGE device(s)
This is my file :
LG Air-conditions are working well with the SmartThinq App, so is it possible to add to the Hassio?