esphome_aux_ac_component icon indicating copy to clipboard operation
esphome_aux_ac_component copied to clipboard

Probably protocol variation (Chinese AUX)

Open qsxzaqq opened this issue 1 year ago • 6 comments

The WiFi LED of the air conditioner is off, but the module can receive ping/pong.

[DEBUG] 0003721794: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[VERBOSE] Parser: ping packet received
[VERBOSE] Parser: generated ping answer. Waiting for sending.
[VERBOSE] State changed to ACSM_SENDING_PACKET.
[VERBOSE] Sender: sending packet.
[DEBUG] 0003721813: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[VERBOSE] Sender: 18 bytes sent (51 ms).
[VERBOSE] State changed to ACSM_IDLE.
[VERBOSE] State changed to ACSM_RECEIVING_PACKET.
[VERBOSE] Header loaded: timestamp = 0003724771, start byte = BB, packet type = 01, body size = 00
[VERBOSE] Packet loaded: timestamp = 0003724771, start byte = BB, packet type = 01, body size = 00, crc = [43, FF].
[VERBOSE] Loaded 10 bytes for a 8 ms.
[VERBOSE] 0003724771: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[VERBOSE] State changed to ACSM_PARSING_PACKET.
[DEBUG] 0003724771: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[VERBOSE] Parser: ping packet received
[VERBOSE] Parser: generated ping answer. Waiting for sending.
[VERBOSE] State changed to ACSM_SENDING_PACKET.
[VERBOSE] Sender: sending packet.
[DEBUG] 0003724789: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[VERBOSE] Sender: 18 bytes sent (51 ms).
[VERBOSE] State changed to ACSM_IDLE.
[VERBOSE] getStatusSmall: loaded to sequence
[VERBOSE] getStatusBig: loaded to sequence
[VERBOSE] getStatusBigAndSmall: loaded to sequence
[VERBOSE] Sequence [step 0]: step started
[VERBOSE] Sequence [step 0]: small status request generated:
[VERBOSE] 0003724974: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
[VERBOSE] State changed to ACSM_SENDING_PACKET.
[VERBOSE] Sender: sending packet.
[DEBUG] 0003724974: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
[VERBOSE] Sender: 12 bytes sent (38 ms).
[VERBOSE] State changed to ACSM_IDLE.
[VERBOSE] Sequence [step 1]: step started
[WARN] Sequence  [step 1]: step timed out (it took 580 ms instead of 580 ms)
[VERBOSE] State changed to ACSM_RECEIVING_PACKET.
[VERBOSE] Header loaded: timestamp = 0003727749, start byte = BB, packet type = 01, body size = 00
[VERBOSE] Packet loaded: timestamp = 0003727749, start byte = BB, packet type = 01, body size = 00, crc = [43, FF].
[VERBOSE] Loaded 10 bytes for a 4 ms.
[VERBOSE] 0003727749: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[VERBOSE] State changed to ACSM_PARSING_PACKET.
[DEBUG] 0003727749: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[VERBOSE] Parser: ping packet received
[VERBOSE] Parser: generated ping answer. Waiting for sending.
[VERBOSE] State changed to ACSM_SENDING_PACKET.
[VERBOSE] Sender: sending packet.
[DEBUG] 0003727758: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[VERBOSE] Sender: 18 bytes sent (48 ms).
[VERBOSE] State changed to ACSM_IDLE.

qsxzaqq avatar Jul 19 '22 15:07 qsxzaqq

Can you control your air conditioner with esphome? I mean is it work properly and the only trouble is wifi LED?

P.S. What is the model of your AC?

GrKoR avatar Jul 19 '22 16:07 GrKoR

The procedure is normal. I use it normally on other old series devices.

KFR-35GW (China)

Only this device, sending packet settings (temperature, mode, etc.) and status packets do not respond.

qsxzaqq avatar Jul 19 '22 16:07 qsxzaqq

Google knows several manufacturers for KFR-35GW: Chigo, Gree, Xiaomi, Haier. Which is yours?

When you switch off VERBOSE logger level (set it to DEBUG) is there any other packets in the log or just ping only?

Upload plz log with logger level DEBUG and where you are try to set some mode on the AC

GrKoR avatar Jul 19 '22 16:07 GrKoR

[DEBUG] 0000023229: [<=] [BB 00 01 00 00 00 00 00] [43 FF]
[DEBUG] 0000023233: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000026206: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000026210: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000028170: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
[WARN] Sequence  [step 1]: step timed out (it took 580 ms instead of 580 ms)
[DEBUG] 0000029183: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000029187: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000032160: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000032164: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000035137: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000035141: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000035187: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
[WARN] Sequence  [step 1]: step timed out (it took 580 ms instead of 580 ms)
[DEBUG] 0000038115: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000038119: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000041092: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000041096: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 
[DEBUG] 0000042188: [=>] [BB 00 06 80 00 00 02 00] 11 01 [2B 7E] 
[WARN] Sequence  [step 1]: step timed out (it took 580 ms instead of 580 ms)
[DEBUG] 0000043077: [<=] [BB 00 01 00 00 00 00 00] [43 FF] 
[DEBUG] 0000043081: [=>] [BB 00 01 80 01 00 08 00] 1C 27 00 00 00 00 00 00 [1E 58] 

The aux model of the Chinese version is very strange. They confuse me.

qsxzaqq avatar Jul 19 '22 16:07 qsxzaqq

Yep, it is very strange. May be it has new protocol version or something like this... If you have an original AUX wifi-module for your AC and you will capture the logs, so I would probably be able to update the component to support your AC...

GrKoR avatar Jul 19 '22 17:07 GrKoR

We need logs of communication between original wifi-module and this type of air conditioners, I don't know if this type of air conditioners is local to China or if it is a new version for the global market too. In any case, this information will greatly help the development of the aux_ac component.

GrKoR avatar Jul 20 '22 11:07 GrKoR