From: M Valla <12682715+mvalla@users.noreply.github.com> Date: Mon, 17 Jul 2023 10:36:13 +0000 (+0200) Subject: [openwebnet] Backward support for CU configurations with where="0" (updated) (#15251) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=d857fd323a766bd61e37b46d13e5d43ab5783844;p=openhab-addons.git [openwebnet] Backward support for CU configurations with where="0" (updated) (#15251) * [openwebnet] Backward support for CU configurations with where="0" * [openwebnet] fix send in handleSetProgramNumber() --------- Signed-off-by: Massimo Valla --- diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThermoregulationHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThermoregulationHandler.java index 7ef93cba94..19d9b0d4dc 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThermoregulationHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThermoregulationHandler.java @@ -196,7 +196,7 @@ public class OpenWebNetThermoregulationHandler extends OpenWebNetThingHandler { Thermoregulation.OperationMode new_mode = Thermoregulation.OperationMode .valueOf(currentMode.mode() + "_" + programNumber); logger.debug("handleSetProgramNumber() new mode {}", new_mode); - send(Thermoregulation.requestWriteMode(getWhere(""), new_mode, currentFunction, + send(Thermoregulation.requestWriteMode(getWhere(deviceWhere.value()), new_mode, currentFunction, currentSetPointTemp)); } catch (OWNException e) { logger.warn("handleSetProgramNumber() {}", e.getMessage());