From 85878feb91b5c5068b068f3f7b9cd872c74cd07c Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Sun, 22 Aug 2021 11:49:33 +0200 Subject: [PATCH] Fix/update channels for setting hot water target temperature (#11135) Signed-off-by: Stefan Giehl --- .../internal/LuxtronikHeatpumpHandler.java | 1 + .../internal/enums/HeatpumpChannel.java | 13 ++++++++++--- .../OH-INF/i18n/luxtronikheatpump_de.properties | 1 + .../src/main/resources/OH-INF/thing/channels.xml | 11 +++++++++-- .../src/main/resources/OH-INF/thing/thing-types.xml | 1 + 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/LuxtronikHeatpumpHandler.java b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/LuxtronikHeatpumpHandler.java index 281d5920c3167..bd0883581cf0a 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/LuxtronikHeatpumpHandler.java +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/LuxtronikHeatpumpHandler.java @@ -162,6 +162,7 @@ public void handleCommand(ChannelUID channelUID, Command command) { case CHANNEL_EINST_BWS_AKT: case CHANNEL_EINST_KUCFTL_AKT: case CHANNEL_SOLLWERT_KUCFTL_AKT: + case CHANNEL_SOLL_BWS_AKT: float temperature = ((DecimalType) command).floatValue(); value = (int) (temperature * 10); break; diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/enums/HeatpumpChannel.java b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/enums/HeatpumpChannel.java index 440499b49d633..a0f042d7d86bf 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/enums/HeatpumpChannel.java +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/enums/HeatpumpChannel.java @@ -1204,10 +1204,10 @@ public enum HeatpumpChannel { HeatpumpVisibility.HEIZUNG), /** - * Hot water temperature - * (original: Warmwasser Soll Temperatur) + * Coverage Heat pump (Hot Water) + * (original: Deckung Wärmepumpe) */ - CHANNEL_EINST_BWS_AKT(2, "temperatureHotWaterTarget", NumberItem.class, SIUnits.CELSIUS, true, + CHANNEL_EINST_BWS_AKT(2, "temperatureHotWaterCoverage", NumberItem.class, SIUnits.CELSIUS, true, HeatpumpVisibility.BRAUWASSER), /** @@ -1271,6 +1271,13 @@ public enum HeatpumpChannel { CHANNEL_EINST_BWTDI_AKT_AL(27, "thermalDisinfectionPermanent", SwitchItem.class, null, true, HeatpumpVisibility.THERMDESINFEKT), + /** + * Hot water target temperature + * (original: Warmwasser Soll Temperatur) + */ + CHANNEL_SOLL_BWS_AKT(105, "temperatureHotWaterTarget", NumberItem.class, SIUnits.CELSIUS, true, + HeatpumpVisibility.BRAUWASSER), + /** * Comfort cooling mode * (original: Comfort Kühlung Betriebsart) diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/i18n/luxtronikheatpump_de.properties b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/i18n/luxtronikheatpump_de.properties index b1b32f6ff6157..af6697bfdbd9f 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/i18n/luxtronikheatpump_de.properties +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/i18n/luxtronikheatpump_de.properties @@ -26,6 +26,7 @@ channel-type.luxtronikheatpump.temperatureOutside.label = Außentemp. channel-type.luxtronikheatpump.temperatureOutsideMean.label = Durchschnittstemp. Außen über 24 h (Funktion Heizgrenze) channel-type.luxtronikheatpump.temperatureHotWater.label = Warmwasser Ist-Temp. channel-type.luxtronikheatpump.temperatureHotWaterTarget.label = Warmwasser Soll-Temp. +channel-type.luxtronikheatpump.temperatureHotWaterCoverage.label = Warmwasser Deckung WP channel-type.luxtronikheatpump.temperatureHeatSourceInlet.label = Wärmequellen-Eintrittstemp. channel-type.luxtronikheatpump.temperatureHeatSourceOutlet.label = Wärmequellen-Austrittstemp. channel-type.luxtronikheatpump.temperatureMixingCircuit1Flow.label = Mischkreis 1 Vorlauftemp. diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/channels.xml b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/channels.xml index 9fc0eba9efacc..5d4a9a590c40d 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/channels.xml +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/channels.xml @@ -1954,9 +1954,9 @@ - + Number:Temperature - + Temperature @@ -2029,6 +2029,13 @@ + + Number:Temperature + + Temperature + + + Number diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/thing-types.xml index d4589d1384aed..e45b66e738ef8 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/resources/OH-INF/thing/thing-types.xml @@ -16,6 +16,7 @@ +