mill1000 / midea-ac-py

Home Assistant custom integration to control Midea (and associated brands) air conditioners via LAN.
MIT License
145 stars 14 forks source link

ACs disconnecting from WiFi. #232

Open tomiko23lol opened 1 week ago

tomiko23lol commented 1 week ago

Hi, I have problem with AC-wifi modules disconnecting / freezing after period of time. This started happening after I added Midea-ac-py to my homeasistant. It is happening on all 4 Midea ACs, but usually not on all of them at the same time. In this case 192.168.23.161 is one that got disconnected.

It looks like after some time usually multiple days. it stops responding, in HA it says Unavailable

image

On my router I can see that there is no IP registration for this particular MAC address any more ( I have DHCP lease MAC>IP reservations for almost all stuff in my home. )

I kept debug logging enable since last restart of AC (2.5 days), I also have Kuma-Uptime setup to ping ACs and it looks like around 17:40 6.Sep.2024 was last successful ping, after that AC stopped responding and lost all connection to network.

image

Here is link for debug log file ( it is too large 350 MB to attach it directly) https://drive.google.com/file/d/1Us4LP51LDNy-I2V2S1jFA8oiNCGfF3er/view?usp=sharing

Here You can see that kidsroom AC does not have IP address leased any more for some reason. Screenshot from my Mikrotik

image

I would appreciate if You could take a look on this issue and help me resolve it. I suspect that it might be some kind of overloading of wifi modules, too frequent polling or something similar. As I say, I never observed this issue when I was using only original midea app. Also this must be only wifi module issue, IR remote control is not affected in any way, so AC itself is OK.

Thx in advance.

mill1000 commented 6 days ago

Your device appears to disconnect every 2 minutes, possibly leaving some part of the connection hanging.

You should try setting the Maximum Connection Lifetime setting to a value of 90.

tomiko23lol commented 4 days ago

Hi, I have set 90 on all 4 units I have. I will report back whether this helped / repaired issue or not.

Thank You.