piotrva / esphome_gree_ac

GNU General Public License v3.0
5 stars 5 forks source link

Excessive logging & unknown fan mode #4

Open 0anton opened 4 months ago

0anton commented 4 months ago

Thank for the great component!

I've got two issues: one is probably an easy one - I'm getting 4 updates per second. I don't know if this is normal. Is AC, per your experience sending so much updates? It it get so many status requests from the component?

[22:54:09][W][sinclair_ac.serial:747]: Received unknown fan mode
[22:54:09][D][climate:396]: 'Cabinet Climate' - Sending state:
[22:54:09][D][climate:399]:   Mode: COOL
[22:54:09][D][climate:407]:   Custom Fan Mode: 0 - Auto
[22:54:09][D][climate:416]:   Swing Mode: OFF
[22:54:09][D][climate:419]:   Current Temperature: 24.00°C
[22:54:09][D][climate:425]:   Target Temperature: 23.00°C
[22:54:09][W][sinclair_ac.serial:747]: Received unknown fan mode
[22:54:09][D][climate:396]: 'Cabinet Climate' - Sending state:
[22:54:09][D][climate:399]:   Mode: COOL
[22:54:09][D][climate:407]:   Custom Fan Mode: 0 - Auto
[22:54:09][D][climate:416]:   Swing Mode: OFF
[22:54:09][D][climate:419]:   Current Temperature: 24.00°C
[22:54:09][D][climate:425]:   Target Temperature: 23.00°C
[22:54:09][W][sinclair_ac.serial:747]: Received unknown fan mode
[22:54:09][D][climate:396]: 'Cabinet Climate' - Sending state:
[22:54:09][D][climate:399]:   Mode: COOL
[22:54:09][D][climate:407]:   Custom Fan Mode: 0 - Auto
[22:54:09][D][climate:416]:   Swing Mode: OFF
[22:54:09][D][climate:419]:   Current Temperature: 24.00°C
[22:54:09][D][climate:425]:   Target Temperature: 23.00°C
[22:54:09][W][sinclair_ac.serial:747]: Received unknown fan mode
[22:54:09][D][climate:396]: 'Cabinet Climate' - Sending state:
[22:54:09][D][climate:399]:   Mode: COOL
[22:54:09][D][climate:407]:   Custom Fan Mode: 0 - Auto
[22:54:09][D][climate:416]:   Swing Mode: OFF
[22:54:09][D][climate:419]:   Current Temperature: 24.00°C
[22:54:09][D][climate:425]:   Target Temperature: 23.00°C

Second issue is a bit more annoying: fan mode "quiet" is not detected Received unknown fan mode. If module quiet is set externally, via remote control, it is reset by the current component with each status update. Other modes (except quiet) seem to work normally. What is the best strategy to fix it?

piotrva commented 1 week ago

Hi, Sorry for late delay but recently I had a lot of more priority work.

About excessive logging: See https://github.com/piotrva/esphome_gree_ac/blob/main/examples/ac-sinclair-main.yaml#L14 Set level to a desired value: https://esphome.io/components/logger.html

About the issue with quiet mode - it is highly possible that your unit encodes quiet mode differently - by setting logging level to VERBOSE you shall be able to view raw packets received from your AC.

Encoding/decoding of fan speed and quiet/auto/turbo modes happens here: https://github.com/piotrva/esphome_gree_ac/blob/main/components/sinclair_ac/esppac_cnt.cpp#L230 https://github.com/piotrva/esphome_gree_ac/blob/main/components/sinclair_ac/esppac_cnt.cpp#L705