-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Fix eco preset for Wink Air Conditioner #25763
Conversation
f89b3b5
to
7c0ea10
Compare
Since I am not a maintainer of this project, I can only give some hints:
As I said, I am not a maintainer, but I had the same issues with the integration of the zwave climate. As mentioned in the documentation, they have split operation_mode into hvac_mode and preset_mode. Hvac_modes are a small subset of operation_modes such as heat, cool and heat/cool. All other modes (boost, eco, away, etc.) are now preset_modes. |
Looks good. But some transactions are not possible because you won't get a signal when the user selects sth. that is already selected. So when auto_eco is active, it is not possible to select HVAC_MODE_COOL, which is already active, to go to cool_only. PRESET_NONE is still possible in that situation. |
* Add preset support for device * Provide mappings between preset changes
7c0ea10
to
4bac457
Compare
@@ -436,7 +440,7 @@ def hvac_mode(self) -> str: | |||
|
|||
wink_mode = self.wink.current_mode() | |||
if wink_mode == "auto_eco": | |||
return HVAC_MODE_AUTO | |||
return HVAC_MODE_COOL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we should keep returning AUTO here. We could optionally check if AUTO is supported first (it's part of hvac_modes
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here was to have the "auto_eco" wink mode displayed as "Cool - Eco". If this returns AUTO it will be displayed as "Auto - Eco". Which style is preferred?
I think the AUTO(in hvac_modes) state is causing confusion because the state map is currently shared with the Wink Thermostat which has a real auto mode(e.g. automatic temperate changes). Maybe it's better to separate the state maps for both the Thermostat and Air conditioner for clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is my bad. I did not realize that this was changing code inside the AC entity. This is ok .
Description:
Wink App:
After changes
HA card:
HA card details:
Related issue (if applicable): fixes #25762
Pull request with documentation for home-assistant.io (if applicable):
Example entry for
configuration.yaml
(if applicable):wink:
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices: