Skip to content

Unit incorrectly detected as hot water tank #12

Description

@astrand

On my BRP069A61, the device 0 (unit) is incorrectly detected as hot water tank, need this patch:

--- a/pyaltherma/controllers.py
+++ b/pyaltherma/controllers.py
@@ -439,7 +439,7 @@ class AlthermaController:
             logger.info(f'Discovered unit: Climate Control with id: {i} {label}')
             unit_controller = AlthermaClimateControlController(unit, self._connection, label)
             self._climate_control = unit_controller
-        elif label == 'function/DomesticHotWaterTank' or 'function/DomesticHotWater':
+        elif label in ('function/DomesticHotWaterTank', 'function/DomesticHotWater'):
             logger.info(f'Discovered unit: Water Tank Controller with id: {i} {label}')
             unit_controller = AlthermaWaterTankController(unit, self._connection, label)
             self._hot_water_tank = unit_controller

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions