Hernas / homebridge-panasonic-heat-pump

Apache License 2.0
7 stars 2 forks source link

Could not load the device: Error: Request failed with status code 400 #6

Closed vinietu closed 5 months ago

vinietu commented 6 months ago

Describe The Bug: since yesterday plugin cannot fetch devices

To Reproduce: just check logs

Expected behavior:

Logs:

[19/03/2024, 13:00:54] [@hernas/homebridge-panasonic-heat-pump] Fetching devices [19/03/2024, 13:00:54] [@hernas/homebridge-panasonic-heat-pump] Fetching devices [19/03/2024, 13:00:58] [@hernas/homebridge-panasonic-heat-pump] Could not load the device: Error: Request failed with status code 400 [19/03/2024, 13:00:58] [@hernas/homebridge-panasonic-heat-pump] Could not load any devices from Comfort Cloud API, trying again in 60 seconds

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

mastaab commented 5 months ago

Same issue here, seems to be related to the latest changes on Panasonic side (there was planned maintenance on 18th of March)

bimusiek commented 5 months ago

@vinietu @mastaab Can you please check new version under https://github.com/Hernas/homebridge-panasonic-heat-pump/releases/tag/v2.0.0 ?

vinietu commented 5 months ago

Sure @bimusiek, installing...brb

bimusiek commented 5 months ago

Just so you know, it does not support 2FA, so make sure you logged in via browser first with any captcha or 2FA and then the homebridge should login as well as it won't ask for 2FA or captcha.

vinietu commented 5 months ago

I did not even have to log in to aquara, plugin logged in automatically and retrieve all data. Just naming of switches are confusing, but can be changed manually: [23/03/2024, 20:51:45] [@hernas/homebridge-panasonic-heat-pump] Updating: Smardzow [09163c90-5866-4e3b-a561-34ce3d2903d7] [23/03/2024, 20:51:45] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 4 [23/03/2024, 20:52:07] [@hernas/homebridge-panasonic-heat-pump] Authenticated to Aquarea Smart Panasonic [23/03/2024, 20:52:11] [@hernas/homebridge-panasonic-heat-pump] Readings: { [23/03/2024, 20:52:11] [@hernas/homebridge-panasonic-heat-pump] Updating: Smardzow [1025a872-8241-4536-8b51-865eba3cb919] [23/03/2024, 20:52:11] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":28,"maxValue":38,"minStep":1} [23/03/2024, 20:52:11] [@hernas/homebridge-panasonic-heat-pump] Updating: Smardzow [09163c90-5866-4e3b-a561-34ce3d2903d7] [23/03/2024, 20:52:11] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 4 [23/03/2024, 20:52:20] [@hernas/homebridge-panasonic-heat-pump] Readings: { [23/03/2024, 20:52:20] [@hernas/homebridge-panasonic-heat-pump] Updating: Smardzow [1025a872-8241-4536-8b51-865eba3cb919] [23/03/2024, 20:52:20] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":28,"maxValue":38,"minStep":1}

bimusiek commented 5 months ago

Damn... wait. I pushed my credentials instead of taking ones from config. xD

bimusiek commented 5 months ago

I have changed the password to my account and pushed v2.0.1 with proper credentials taken from config file.

vinietu commented 5 months ago

Yep, now looks good :) Thanks a lot!

[23/03/2024, 21:06:01] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [7080972b-acc5-4ee0-be5e-95907e876663] [23/03/2024, 21:06:01] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 4 [23/03/2024, 21:06:10] [@hernas/homebridge-panasonic-heat-pump] Readings: { [23/03/2024, 21:06:10] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [3c7ca285-dfb4-4f5f-8116-324ca4389cbf] [23/03/2024, 21:06:10] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":35,"maxValue":45,"minStep":1}