sampsyo / wideq

reverse-engineered client for the LG SmartThinQ API
https://pypi.org/project/wideq/
MIT License
326 stars 160 forks source link

Results not showing all devices #124

Open FracKenA opened 3 years ago

FracKenA commented 3 years ago

I am attempting to connect my AC units to Home Assistant. I the process of this I started testing with the wideq cli. The result I am getting are missing 4 of my AC units. I am not certain if this is related to the V2 API issue #100 or not. I have a 5 head mini split system and a washer and dryer that are all LG Thinq. I appreciate any feedback.

➜  wideq git:(master) python3 example.py --country US --language en-US --verbose
2020-10-04 23:24:00 DEBUG [wideq.example] No state file found (tried: '/root/wideq/wideq_state.json')
2020-10-04 23:24:00 DEBUG [wideq.example] No state file found (tried: '/root/wideq/wideq_state.json')
Log in here:
https://us.m.lgaccount.com/login/sign_in?country=US&language=en-US&svcCode=SVC202&authSvr=oauth2&client_id=LGAO221A02&division=ha&grant_type=password
Then paste the URL where the browser is redirected:
https://us.m.lgaccount.com/login/iabClose?access_token=**REDACTED**&refresh_token=**REDACTED**&oauth2_backend_url=https://us.lgeapi.com/
**REDACTED**: LivingRoomSmall (AC RAC_056905_WW)
2020-10-04 23:24:28 DEBUG [wideq.example] Wrote state file '/root/wideq/wideq_state.json'
2020-10-04 23:24:28 DEBUG [wideq.example] Wrote state file '/root/wideq/wideq_state.json'
➜  wideq git:(master) python3 example.py ls
**REDACTED**: LivingRoomSmall (AC RAC_056905_WW)
➜  wideq git:(master)
jeffgoh commented 3 years ago

I have similar problem - my three aircon split units show, but not my washer

FracKenA commented 3 years ago

I am not certain this is still being maintained until the new api parts are fixed. We shall see.