grzegorz914 / homebridge-melcloud-control

Homebridge plugin for Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation, publish as dynamic external platform accessory.
MIT License
55 stars 2 forks source link

MELCloud check device state error, AxiosError: Request failed with status code 429 #68

Closed imTHAI closed 7 months ago

imTHAI commented 8 months ago

Hello,

First, thank you a lot for your plugin. I discovered it yesterday and installed it, and all my aircon's were in Apple Home at a glance.

But today I see that my homebridge logs are full of errors like those ones:

[2/5/2024, 6:42:23 PM] [melcloudcontrol] Air Conditioner Bureau check device state error, AxiosError: Request failed with status code 429, check again in 65s.
[2/5/2024, 6:42:23 PM] [melcloudcontrol] Air Conditioner Salle de jeu check device state error, AxiosError: Request failed with status code 429, check again in 65s.
[2/5/2024, 6:42:23 PM] [melcloudcontrol] Air Conditioner Chambre Anakin check device state error, AxiosError: Request failed with status code 429, check again in 65s.
[2/5/2024, 6:42:23 PM] [melcloudcontrol] Air Conditioner Chambre parents check device state error, AxiosError: Request failed with status code 429, check again in 65s.

And all my aircon were "not answering" in Apple Home. So l logged into https://app.melcloud.com and it says:

We have detected excessive traffic from your account, your access to the service has been limited for a few hours.

So I think the plugin does too many requests or too often. Is it a way to limit it ? Did I miss something ?

For now I've disabled it and will enable it again tomorrow.

grzegorz914 commented 7 months ago

Plugin Settings >> Advanced Settings >> System >> Debug, enable it restart plugin and get the log.

Kirshley1 commented 7 months ago

I can't find the option within the plugin...the fact is that the first time I had no problems adding the air. Thank you very much anyway.

grzegorz914 commented 7 months ago

@Kirshley1

Zrzut ekranu 2024-02-10 o 17 35 34
grzegorz914 commented 7 months ago

@Kirshley1 https://github.com/grzegorz914/homebridge-melcloud-control/wiki#troubleshooting

Kirshley1 commented 7 months ago

here is the log. I'm going to the car to drive and in a while I'll look at what you sent me about troubleshooting. thank you so much homebridge-melcloud-control.log.txt

grzegorz914 commented 7 months ago

@Kirshley1 all is correct in the log, use troubleshooting guide or try to change name of AC device.

Kirshley1 commented 7 months ago

Is it necessary to configure the plugin as a child bridge? I could swear that when it worked for me, I installed it without putting it as a bridge son

grzegorz914 commented 7 months ago

no need set as child bridge

grzegorz914 commented 7 months ago

0.16.0 released, recommended time refresh 120 seconds