sman591 / homebridge-lg-thinq-ac

Homebridge plugin for LG ThinQ-enabled portable air conditioner
Apache License 2.0
53 stars 16 forks source link

Failed to set power state on Error: Request failed with status code 400 #11

Open subsy opened 4 years ago

subsy commented 4 years ago

LG Air Conditioner Model AM09BP.NSJ

Describe the bug Controls not working.

Symptom check

Relevant logs [5/21/2020, 17:45:31] [LgThinqAirConditioner] Already logged into ThinQ [5/21/2020, 17:45:32] [LgThinqAirConditioner] Discover found 1 total devices [5/21/2020, 17:45:32] [LgThinqAirConditioner] Existing accessory: Air Conditioner [5/21/2020, 17:46:05] [LgThinqAirConditioner] Failed to set power state on Error: Request failed with status code 400 [5/21/2020, 17:46:13] [LgThinqAirConditioner] Failed to set power state on Error: Request failed with status code 400 [5/21/2020, 17:46:31] [LgThinqAirConditioner] Error renewing monitor Error: Request failed with status code 400 [5/21/2020, 17:46:31] [LgThinqAirConditioner] Error parsing power state TypeError: Cannot read property 'airState.operation' of undefined [5/21/2020, 17:46:31] [LgThinqAirConditioner] Error during interval update TypeError: Cannot read property 'airState.tempState.current' of undefined [5/21/2020, 17:47:31] [LgThinqAirConditioner] Error renewing monitor Error: Request failed with status code 400

@sman591 thank you for your efforts with this plugin - it's greatly appreciated.

jasonstcyr commented 4 years ago

I'm getting the same errors.

sebruant commented 4 years ago

Same here.

[5/23/2020, 9:20:33 PM] [LgThinqAirConditioner] Error renewing monitor Error: Request failed with status code 400 [5/23/2020, 9:20:33 PM] [LgThinqAirConditioner] Error parsing power state TypeError: Cannot read property 'airState.operation' of undefined

calhounfournier commented 4 years ago

I'm having the same issues. Different model though. WIN_056905_CA.

sman591 commented 4 years ago

Could you open the LG ThinQ app and check if it asks you to accept updated terms & conditions?

There is an outstanding to-do with ThinQ 1 devices in #4: only ThinQ 2 devices are supported right now. If there are no new Terms & Conditions to accept and you still see the message:

Cannot read property 'airState.operation' of undefined

This means your device isn't supported yet; please follow #4 for progress and updates

subsy commented 4 years ago

Thanks Stuart. No new T&C to accept here, and validated that all existing ones are checked.

Will follow #4 👍

calhounfournier commented 4 years ago

Yes same here. Will follow #4

AmauryVela commented 4 years ago

Same here [6/16/2020, 3:41:59 PM] [LgThinqAirConditioner] Discover found 1 total devices [6/16/2020, 3:41:59 PM] [LgThinqAirConditioner] Registering new accessory: AIRE ACONDICIONADO [6/16/2020, 3:41:59 PM] [LgThinqAirConditioner] Starting refresh interval (set to 1 minutes) [6/16/2020, 3:42:00 PM] [LgThinqAirConditioner] Error renewing monitor Error: Request failed with status code 400

with model LP1419IVSM

I read in another issue that this might be because the device is offline (that I think in my case), because my device doesn't support API v1.

I'll try to get my device online and check again.