home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

Gree "X-Fan" switch goes back to off on its own #120786

Open adan2013 opened 1 week ago

adan2013 commented 1 week ago

The problem

I am using Gree Clivia air conditioner. A few days ago, I noticed that the X-Fan function stopped working after using the official Gree integration. After little investigation, I noticed that the "XFan" switch entity goes back to off on its own after 5-60 seconds. No matter if I first turn on the A/C (set HVAC mode) or I turn on the "XFan" switch. The turn on operation is always confirmed by the "beep" sound.

What version of Home Assistant Core has the issue?

core-2023.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

gree

Link to integration documentation on our website

https://www.home-assistant.io/integrations/gree/

Diagnostics information

home-assistant_gree_2024-06-28T20-13-30.495Z (1).log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logbook on the right side:
June 28, 2024
9424b8b91313 XFan turned off
22:20:39 - Now
9424b8b91313 XFan turned on triggered by service Switch: Turn on
22:19:44 - 1 minute ago - Daniel

Additional information

No response

home-assistant[bot] commented 1 week ago

Hey there @cmroche, mind taking a look at this issue as it has been labeled with an integration (gree) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `gree` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign gree` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


gree documentation gree source (message by IssueLinks)

cmroche commented 6 days ago

Please share debug logs for greeclimate from the time you set XFan until the time it resets. Off the cuff though, if it sets correctly, I would think it's the device changing it back, but I won't know for sure until I can see logs.

adan2013 commented 6 days ago

Do you mean the "Enable debug logging" option? I already shared a piece of the logs with both events in "Diagnostics information" section.

adan2013 commented 4 days ago

@cmroche I noticed the pattern. The XFan stays on only in the "cool" mode. If you choose "auto", "fan", and probably "heat", the XFan will turn off after one minute - likely due to the polling interval. It would be great if the integration saved the state chosen by the user and applied that state after selecting "cool" mode. I am not sure if this is technically possible and it might be difficult to override this strange behavior.

cmroche commented 3 days ago

I tested now, it's not just XFan even. When you go to auto the temp resets too. I cannot avoid a small delay, but I think I can force an update from the device once state changes to confirm the extra values.