From 384fdad56ea5c01f3577da1611b089d246e3559c Mon Sep 17 00:00:00 2001 From: Hilbrand Bouwkamp Date: Wed, 1 Dec 2021 11:57:09 +0100 Subject: [PATCH 1/2] [tplinksmarthome] Fixed invalid channels in KL125/KL135. (#11680) These are color bulbs and should have the color channel instead of the brightness channel. Closes #11660 Signed-off-by: Hilbrand Bouwkamp --- .../src/main/resources/OH-INF/thing/KL125.xml | 2 +- .../src/main/resources/OH-INF/thing/KL135.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL125.xml b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL125.xml index 3583b6057f72f..fff94fa871eff 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL125.xml +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL125.xml @@ -10,7 +10,7 @@ Lightbulb - + diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL135.xml b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL135.xml index 297014467b64f..ec025384916bb 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL135.xml +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KL135.xml @@ -10,7 +10,7 @@ Lightbulb - + From 7fbcd714c0b1e25ef86e91e0e2dbb03f209d5d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans-J=C3=B6rg=20Merk?= Date: Wed, 1 Dec 2021 11:58:59 +0100 Subject: [PATCH 2/2] [wemo] Fix receiving empty binary state during poll (#11679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hans-Jörg Merk --- .../openhab/binding/wemo/internal/handler/WemoHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/handler/WemoHandler.java b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/handler/WemoHandler.java index 50191917aab67..0eb877d39f0c6 100644 --- a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/handler/WemoHandler.java +++ b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/handler/WemoHandler.java @@ -421,8 +421,10 @@ protected void updateWemoState() { } else { value = substringBetween(wemoCallResponse, "", ""); } - logger.trace("New state '{}' for device '{}' received", value, getThing().getUID()); - this.onValueReceived(variable, value, actionService + "1"); + if (value.length() != 0) { + logger.trace("New state '{}' for device '{}' received", value, getThing().getUID()); + this.onValueReceived(variable, value, actionService + "1"); + } } } } catch (Exception e) {