]> git.basschouten.com Git - openhab-addons.git/commitdiff
[helioseasycontrols] Fixes heat echanger type (#9274)
authorBernhard Bauer <bern77@gmail.com>
Mon, 7 Dec 2020 22:43:15 +0000 (23:43 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 22:43:15 +0000 (14:43 -0800)
Signed-off-by: Bernhard Bauer <bern77@gmail.com>
bundles/org.openhab.binding.modbus.helioseasycontrols/README.md
bundles/org.openhab.binding.modbus.helioseasycontrols/src/main/java/org/openhab/binding/modbus/helioseasycontrols/internal/HeliosVariable.java

index eaaf7b39321591df53a7587a2ff29e39c4f22feb..b6365bd429a312e2f6aa957dc8f846d5f21722a9 100644 (file)
@@ -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)                                                                     | 
index e806ea2be9846a872bc9dcc283d0e6f7e580bac9..081d14375f3f804765992031157e7757c4aa2e09 100644 (file)
@@ -425,11 +425,11 @@ public class HeliosVariable implements Comparable<HeliosVariable> {
                 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));