mill1000 / midea-ac-py

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

Errors in log: failed CRC and checksum #153

Open KVinS opened 6 days ago

KVinS commented 6 days ago

Home Assistant Core: 2024.6.2 Midea Smart AC: 2024.5.5

Hello. I see this error in the log, although everything seems to be working fine:

Payload 'c00129657f7f000008400163610d70660001310000000004580200000000' failed CRC and checksum. Received: 0x0, Expected: 0x2C or 0x33.
Payload 'c00029657f7f000000000063ff0d00070000000000000004580200000000' failed CRC and checksum. Received: 0x0, Expected: 0x5A or 0xE0.
Payload 'c00029657f7f000000000063ff0d00080000000000000004580200000000' failed CRC and checksum. Received: 0x0, Expected: 0xE7 or 0xDF.
Payload 'c00048667f7f000000000067ff0c00060000000000000004580200000000' failed CRC and checksum. Received: 0x0, Expected: 0x12 or 0xBE.
mill1000 commented 6 days ago

Hi. Haven't seen that one in a while.

Can you enable debug logging and post the full logs after a few minutes of running?

KVinS commented 6 days ago

Hi. Haven't seen that one in a while.

Can you enable debug logging and post the full logs after a few minutes of running?

I just attached the log of the air conditioner in another issue :D

mill1000 commented 6 days ago

Ah you did! Thanks. :D

I'm on a trip so I'll look at this in a few days.

KVinS commented 6 days ago

Ah you did! Thanks. :D

I'm on a trip so I'll look at this in a few days.

Check also the new localization file, please. Thanks.

mill1000 commented 4 days ago

OK so the odd thing is the CRC/Checksum errors are not for every response.

In this log the errors also occur periodically about once per minute. They also for the most part have the same payload c00048667f7f000000000067ff0c00060000000000000004580200000000

mill1000 commented 4 days ago

An interesting test might be to set the maximum connection lifetime to a value like 45 seconds. I wonder if regularly recreating the connection will prevent these errors.

KVinS commented 4 days ago

An interesting test might be to set the maximum connection lifetime to a value like 45 seconds. I wonder if regularly recreating the connection will prevent these errors.

Something new...

Unknown capability. ID: 0x0040, Size: 1.
Unsupported capability. ID: 0x0051, Size: 1.
Unsupported capability. ID: 0x0048, Size: 1.
Unsupported capability. ID: 0x0067, Size: 1.

home-assistant_midea_ac_2024-07-01T20-40-06.572Z.log

mill1000 commented 3 days ago

Latest log has far less CRC errors. Setting that lifetime may be the trick to suppress those.

Those warnings are nothing to worry about. Your device just has some functionality I haven't implemented support for.

KVinS commented 3 days ago

Latest log has far less CRC errors. Setting that lifetime may be the trick to suppress those.

Those warnings are nothing to worry about. Your device just has some functionality I haven't implemented support for.

I wonder which ones? It seems like everything is there...

Midea MSFE-09N8D6-I/MSFE-09N8D6-O

mill1000 commented 3 days ago

Unknown capability. ID: 0x0040, Size: 1.

This one is a mystery. Seen it in a number of logs but I can't find any references to it.

Unsupported capability. ID: 0x0051, Size: 1.

This appears to be some form of parental control.

Unsupported capability. ID: 0x0048, Size: 1.

This is rate select or what is also called "Gear"

Unsupported capability. ID: 0x0067, Size: 1.

This is something called Jet Cool

mill1000 commented 3 days ago

Oh, and doesn't necessary mean your device supports them. It could be including those IDs just to explicitly state that it doesn't support them.

KVinS commented 3 days ago

Oh, and doesn't necessary mean your device supports them. It could be including those IDs just to explicitly state that it doesn't support them.

There was something in the instructions about parental controls. Is there any way I can help you analyze this?