From: Bernhard Bauer Date: Mon, 7 Dec 2020 22:43:15 +0000 (+0100) Subject: [helioseasycontrols] Fixes heat echanger type (#9274) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=345e30928e88127216e7d63b41b4a791a8950b1b;p=openhab-addons.git [helioseasycontrols] Fixes heat echanger type (#9274) Signed-off-by: Bernhard Bauer --- diff --git a/bundles/org.openhab.binding.modbus.helioseasycontrols/README.md b/bundles/org.openhab.binding.modbus.helioseasycontrols/README.md index eaaf7b3932..b6365bd429 100644 --- a/bundles/org.openhab.binding.modbus.helioseasycontrols/README.md +++ b/bundles/org.openhab.binding.modbus.helioseasycontrols/README.md @@ -229,7 +229,7 @@ The binding provides the following properties: | co2ControlStatus | CO2 control status (0 = off, 1 = stepped, 2 = stepless) | | vocControlStatus | VOC control status (0 = off, 1 = stepped, 2 = stepless) | | dateFormat | Date format (0 = dd.mm.yyyy, 1 = mm.dd.yyyy, 2 = yyyy.mm.dd) | -| heatExchangerType | Heat exchanger type (0 = plastic, 1 = aluminium, 2 = enthalpy) | +| heatExchangerType | Heat exchanger type (1 = plastic, 2 = aluminium, 3 = enthalpy) | | serNo | Serial number | | prodCode | Production Code | | vhzType | Pre-heater type (1 = EH-Basis, 2 EH-ERW, 3 = SEWT, 4 = LEWT) | diff --git a/bundles/org.openhab.binding.modbus.helioseasycontrols/src/main/java/org/openhab/binding/modbus/helioseasycontrols/internal/HeliosVariable.java b/bundles/org.openhab.binding.modbus.helioseasycontrols/src/main/java/org/openhab/binding/modbus/helioseasycontrols/internal/HeliosVariable.java index e806ea2be9..081d14375f 100644 --- a/bundles/org.openhab.binding.modbus.helioseasycontrols/src/main/java/org/openhab/binding/modbus/helioseasycontrols/internal/HeliosVariable.java +++ b/bundles/org.openhab.binding.modbus.helioseasycontrols/src/main/java/org/openhab/binding/modbus/helioseasycontrols/internal/HeliosVariable.java @@ -425,11 +425,11 @@ public class HeliosVariable implements Comparable { return "Function " + value; case HeliosEasyControlsBindingConstants.HEAT_EXCHANGER_TYPE: switch (value) { - case "0": - return "Plastic"; case "1": - return "Aluminium"; + return "Plastic"; case "2": + return "Aluminium"; + case "3": return "Enthalpy"; } throw new HeliosException(this.createErrorMessage(value));