HomeAssistant-GreeClimateComponent icon indicating copy to clipboard operation
HomeAssistant-GreeClimateComponent copied to clipboard

Unable to switch fan mode

Open Dehumanizer77 opened this issue 1 year ago • 3 comments

Describe the bug I can't switch fan moe to anything else than Turbo. If I switch to low, medium, or high, it switches back to Auto

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Configuration platform: gree name: Pracovňa host: x.x.x.x port: 7000 mac: '...' target_temp_step: 1 temp_sensor: sensor.pracovna_teplota auto_light: input_boolean.ac_pracovna_display

Expected behavior changing fan mode while the device is on should change the fan mode, but the only mode Incan select is auto or turbo

Platform:

  • OS: hassOS 12.4
  • HA 2024.7.4
  • gree integration 2.14.2

Dehumanizer77 avatar Aug 10 '24 10:08 Dehumanizer77

Actually, it's just a display problem, it switches the mode, but display in HA switches to Auto after few seconds.

Dehumanizer77 avatar Aug 10 '24 10:08 Dehumanizer77

Can someone please look at this? It's quite annoying as I don't know what fan mode is set (if it's not set to turbo, which works)... I have checked the code, but I'm not that good at python plus I don't exactly know how the communication works :-/

Dehumanizer77 avatar Aug 30 '24 14:08 Dehumanizer77

Here is my AC model VRjwAlmNTlOhqyv69Y749g

Dehumanizer77 avatar Aug 30 '24 14:08 Dehumanizer77

The issue still persists...

Dehumanizer77 avatar Mar 20 '25 11:03 Dehumanizer77

This might be due to your HVAC not following the Gree protocol correctly. Can you enable debug mode and share the log when you start changing the fan mode a few times?

RobHofmann avatar Mar 21 '25 11:03 RobHofmann

debug.txt

If I understand that correctly, the integration always sends "Auto"... I have switched it to low first, then medium and then turbo, while in the log I only see fan_mode(): Auto and fan_mode(): Turbo...

Dehumanizer77 avatar Mar 22 '25 08:03 Dehumanizer77

It only seems to choose Auto or Turbo accordings to the logs. I do see you set the Mod to different values.

I have honestly no clue why it won't work. It looks like the HVAC simply doesn't understand those fan modes.

RobHofmann avatar Mar 24 '25 23:03 RobHofmann

But it sets the fan mode correctly, when I set low, it sets fan to low, but then the displayed value switches back to auto (but the actual mode stays on low). It really doesn't make any sense... It was working correctly before.

Dehumanizer77 avatar Mar 25 '25 05:03 Dehumanizer77

I have made a video of how it looks in the app: https://youtube.com/shorts/qDddBuDTmHg?si=A_rctq3Lvod7h3Cd

Dehumanizer77 avatar Mar 25 '25 06:03 Dehumanizer77

Every time I switch the mode, the AC correctly switches it, just the display goes back to Auto. Only Turbo mode sticks.

Dehumanizer77 avatar Mar 25 '25 06:03 Dehumanizer77

Yeah there seems to be a mismatch between what your HVAC sends back and what the Gree protocol dictates. I think I'm unable to fix this without breaking the integration for other people. You might want to debug this further and potentially create a fork for yourself with the correct implementation for your device.

RobHofmann avatar Mar 25 '25 10:03 RobHofmann

That's unfortunate... I don't think I'll be able to debug it myself. I'm not sure how come it was working and suddenly it's not. Thanks anyway

Dehumanizer77 avatar Mar 25 '25 10:03 Dehumanizer77

Did the firmware from the device maybe update? If thats the case, maybe you can downgrade it?

RobHofmann avatar Mar 25 '25 10:03 RobHofmann

Oh, I have now realised that I have replaced the wifi units on the AC units, the original ones were CS532AE and now there is CS532AF so this can very well be it... But I can't verify it, as I don't have the AE ones anymore.

Dehumanizer77 avatar Mar 25 '25 10:03 Dehumanizer77

Right. It shouldn't make a difference, but who knows :).

Did the issue also start around that same time?

RobHofmann avatar Mar 25 '25 11:03 RobHofmann

Yeah it might be around that time... Anyway, how could I debug the data sent from the device? I would have to do it manually outside of the HA, right?

Dehumanizer77 avatar Mar 25 '25 11:03 Dehumanizer77

I did it by simply adding python code to write the returned data to the logs. In this way I reverse engineered the Gree hvac step by step :). Be aware: This will take significant time.

Hope this helps.

PS. Use this code to enable debug logging:

logger:
  default: error
  logs:
    custom_components.gree: debug

RobHofmann avatar Mar 25 '25 11:03 RobHofmann

Thanks, I'll try it when I'll have some time. I can post an update here once I will find something.

Dehumanizer77 avatar Mar 25 '25 11:03 Dehumanizer77

Sure :). Keep me posted.

RobHofmann avatar Mar 25 '25 11:03 RobHofmann

Ok so it seems the modules I bought on Aliexpress are not 100% original, I have now tried the official gree app and it doesn't show the fan speed there as well. Also, it doesn't provide a firmware version and I can't upgrade firmware in the module using the official app. So it's apparently the problem of the modules. I suppose I have to live with it. I would buy some other modules if I had a guarantee that it will work, but I won't have that...

Dehumanizer77 avatar Mar 26 '25 15:03 Dehumanizer77

Ah right. that clears it up then. Indeed, if its not too big of a hassle, just roll with it :).

RobHofmann avatar Mar 26 '25 20:03 RobHofmann