Skip to content
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

Adjust system mode behavior for Acova (Zehnder) heaters #256

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

gdoffe
Copy link

@gdoffe gdoffe commented Oct 21, 2024

This PR addresses an issue where SystemMode.AUTO for Acova (Zehnder) heaters behaves differently from the HA standard. For this manufacturer, SystemMode.AUTO allows control of the heater via Zigbee, while SystemMode.HEAT puts the heater in manual mode.

As a result, the conversion tables in ZHA climate constants (HVACMode) are incorrect for this device. The mapping for SystemMode.AUTO has been updated to correspond to HVACMode.HEAT instead of HVACMode.HEAT_COOL.

See zigpy/zha-device-handlers#2921

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.33%. Comparing base (636ad13) to head (08d6e62).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #256      +/-   ##
==========================================
+ Coverage   96.31%   96.33%   +0.01%     
==========================================
  Files          61       61              
  Lines        9368     9404      +36     
==========================================
+ Hits         9023     9059      +36     
  Misses        345      345              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdoffe gdoffe force-pushed the add_acova_heaters branch 8 times, most recently from d09b59f to 08d6e62 Compare October 28, 2024 01:40
@gdoffe gdoffe force-pushed the add_acova_heaters branch from 08d6e62 to f54d13d Compare October 30, 2024 16:22
@@ -589,6 +589,67 @@ class ZenWithinThermostat(Thermostat):
"""Zen Within Thermostat implementation."""


@MULTI_MATCH(
cluster_handler_names=CLUSTER_HANDLER_THERMOSTAT,
manufacturers={"ZEHNDER GROUP VAUX ANDIGNY "},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
I just tested this branch on my Home Assistant.

Personally, my heater's manufacturer name does not include the trailing spaces. Maybe I have a more recent version, and ZEHNDER has fixed this typo?

I believe both manufacturer names, "ZEHNDER GROUP VAUX ANDIGNY " and "ZEHNDER GROUP VAUX ANDIGNY", exist on the market.

Therefore, I propose a PR to @gdoffe repository to allow support for both manufacturer names. I hope it will be accepted and reflected in this PR :)

Otherwise, I tested it on my side (with this minor change), and it works very well. The modes are correctly mapped thanks to @gdoffe work.

@TheJulianJES TheJulianJES added the entities Issue or PR about (custom) entities label Nov 24, 2024
@gdoffe gdoffe force-pushed the add_acova_heaters branch 2 times, most recently from 0f11292 to 6b4b750 Compare November 29, 2024 12:07
@gdoffe
Copy link
Author

gdoffe commented Nov 29, 2024

Thanks to @mattheop for its review and fixes, it is squashed and pushed.

@gdoffe gdoffe requested a review from puddly November 30, 2024 21:49
@gdoffe
Copy link
Author

gdoffe commented Dec 4, 2024

@puddly does it seem ok for you ?

Just tell me if I need to do other modifications. 🙏

gdoffe and others added 2 commits December 20, 2024 16:32
This commit addresses an issue where SystemMode.AUTO for Acova (Zehnder)
heaters behaves differently from the HA standard. For this manufacturer,
SystemMode.AUTO allows control of the heater via Zigbee, while
SystemMode.HEAT puts the heater in manual mode.

As a result, the conversion tables in ZHA climate constants (HVACMode)
are incorrect for this device. The mapping for SystemMode.AUTO has been
updated to correspond to HVACMode.HEAT instead of HVACMode.HEAT_COOL.

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
Co-authored-by: Matthéo PERELLE <mattheo.perelle@gmail.com>
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
Co-authored-by: Matthéo PERELLE <mattheo.perelle@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
entities Issue or PR about (custom) entities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants