From 07031a0b775bea1f10f9fb6767b3b40173c17366 Mon Sep 17 00:00:00 2001 From: Markkuuss <10926460+Markkuuss@users.noreply.github.com> Date: Tue, 18 Dec 2018 00:49:02 +0100 Subject: [PATCH 1/2] Update HandlerFactory.java --- .../org/openhab/binding/deconz/internal/HandlerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/HandlerFactory.java b/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/HandlerFactory.java index 8211916c79265..c11bd5994f2bc 100644 --- a/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/HandlerFactory.java +++ b/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/HandlerFactory.java @@ -41,7 +41,7 @@ public class HandlerFactory extends BaseThingHandlerFactory { private static final Set SUPPORTED_THING_TYPES_UIDS = Stream .of(BRIDGE_TYPE, THING_TYPE_PRESENCE_SENSOR, THING_TYPE_DAYLIGHT_SENSOR, THING_TYPE_POWER_SENSOR, - THING_TYPE_LIGHT_SENSOR, THING_TYPE_TEMPERATURE_SENSOR) + THING_TYPE_LIGHT_SENSOR, THING_TYPE_TEMPERATURE_SENSOR, THING_TYPE_SWITCH) .collect(Collectors.toSet()); private @NonNullByDefault({}) WebSocketFactory webSocketFactory; From ec93b25186ec6e8eec31f08d7fc91c77c9857f40 Mon Sep 17 00:00:00 2001 From: Markkuuss <10926460+Markkuuss@users.noreply.github.com> Date: Tue, 18 Dec 2018 14:37:45 +0100 Subject: [PATCH 2/2] Update SensorThingHandler.java --- .../binding/deconz/internal/handler/SensorThingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorThingHandler.java b/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorThingHandler.java index 4ce820ab9a4ce..ddd39f7073b5a 100644 --- a/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorThingHandler.java +++ b/addons/binding/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/handler/SensorThingHandler.java @@ -241,7 +241,7 @@ public void valueUpdated(String id, SensorState state) { break; case BindingConstants.CHANNEL_TEMPERATURE: if (temperature != null) { - updateState(id, new QuantityType(temperature, SIUnits.CELSIUS)); + updateState(id, new QuantityType(temperature / 100, SIUnits.CELSIUS)); } break; case BindingConstants.CHANNEL_PRESENCE: