-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Fan Mode error when switching HVAC mode #19620
Comments
I have similar issues with my Thermostats when i Change between "Auto", "heating" and "Off"... |
Also, it appears the Same when I select the Program in my Coffee machine... |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an issue in the latest |
I'm able to reproduce a similar effect by messing in developer tools. E.g. load up the Has the following fan modes, with default set to
While the more info is open, in developer tools in a separate window change the attribute fan modes to this:
The fan mode control becomes bugged and it sends the invalid service call. I guess the dropdown does not like it when it is selected to a particular index, and then the number of options changes to be less than that index, it resets the control to undefined and triggers a spurious service call. Same with any of the other dropdowns. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Bump |
I'm also affected |
Checklist
Describe the issue you are experiencing
When switching from an HVAC mode with a Fan speed (fan_mode) of
Auto
to a HVAC mode that only supports a fan speed ofAuto
, an error message pops up indicatingFan mode is not valid. Valid fan modes are: auto
.For example, if the climate entity is currently in HVAC mode
Heat
with a Fan mode ofAuto
, when switching to a HVAC mode that only supports a single Fan Mode (Auto), such as Dry or Heat/Cool in my case, the error pops up in the UI.Video example shown below
Fan.mode.error.mov
Note: This behavior only happens when switching from a HVAC mode that supports multiple fan modes in addition to the Auto mode, but not when switching from a HVAC mode that only supports an Auto fan_mode to another HVAC mode that only supports an Auto fan_mode (i.e., Going from Dry mode with a Fan mode of Auto to a HVAC mode of Heat/Cool).
Related
async_set_hvac_mode
code below:As you can see, I am not setting
self.hvac_data.attributes['fan-speed']
toflair_speed
(which results in the fan_mode property returning the Home AssistantFAN_AUTO
constant) prior to writing the HA state when the current fan mode is already Auto.During my debugging of the error, I have identified that the Climate
fan_mode
property is correctly returningauto
prior to callingself.async_write_ha_state()
, after callingself.async_write_ha_state()
, and after a refresh is requested from the coordinator. With all of this said, the error seems to be contradicting the actual state of the fan_mode property.Describe the behavior you expected
When switching from an HVAC mode (which supports multiple fan modes) with a fan mode of Auto, to a HVAC mode that only supports a fan mode of Auto, no error message should be presented.
Steps to reproduce the issue
Auto
.Auto
as its fan mode....
What version of Home Assistant Core has the issue?
2024.2.0b2
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
No response
Which operating system are you using to run this browser?
No response
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
The text was updated successfully, but these errors were encountered: