From d857fd323a766bd61e37b46d13e5d43ab5783844 Mon Sep 17 00:00:00 2001 From: M Valla <12682715+mvalla@users.noreply.github.com> Date: Mon, 17 Jul 2023 12:36:13 +0200 Subject: [PATCH] [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 --- .../internal/handler/OpenWebNetThermoregulationHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7ef93cba946..19d9b0d4dc8 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());