Unable to switch fan mode
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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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
Actually, it's just a display problem, it switches the mode, but display in HA switches to Auto after few seconds.
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 :-/
Here is my AC model
The issue still persists...
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?
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...
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.
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.
I have made a video of how it looks in the app: https://youtube.com/shorts/qDddBuDTmHg?si=A_rctq3Lvod7h3Cd
Every time I switch the mode, the AC correctly switches it, just the display goes back to Auto. Only Turbo mode sticks.
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.
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
Did the firmware from the device maybe update? If thats the case, maybe you can downgrade it?
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.
Right. It shouldn't make a difference, but who knows :).
Did the issue also start around that same time?
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?
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
Thanks, I'll try it when I'll have some time. I can post an update here once I will find something.
Sure :). Keep me posted.
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...
Ah right. that clears it up then. Indeed, if its not too big of a hassle, just roll with it :).