From 9ee4e942e80743041330d62a5846bfb258bb4436 Mon Sep 17 00:00:00 2001 From: Christoph Weitkamp Date: Fri, 12 Feb 2021 11:52:18 +0100 Subject: [PATCH] [deconz] Use system default channel types for lights (#10126) * Use system default channel types for lights Signed-off-by: Christoph Weitkamp --- .../OH-INF/i18n/deconz_de.properties | 3 ++ .../OH-INF/thing/group-thing-types.xml | 34 +------------ .../OH-INF/thing/light-thing-types.xml | 48 ++++--------------- .../OH-INF/thing/sensor-thing-types.xml | 9 +--- 4 files changed, 15 insertions(+), 79 deletions(-) diff --git a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/i18n/deconz_de.properties b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/i18n/deconz_de.properties index 32837cc77..9fe1f7f6e 100644 --- a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/i18n/deconz_de.properties +++ b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/i18n/deconz_de.properties @@ -10,6 +10,9 @@ thing-type.config.deconz.sensor.id.description = ID zur Identifikation des Senso thing-type.config.deconz.sensor.lastSeenPolling.label = Abfrageintervall thing-type.config.deconz.sensor.lastSeenPolling.description = Intervall zur Abfrage des deCONZ-Gateways nach dem "last_seen" Channel dieses Sensors. Polling wird deaktiviert, wenn der Wert auf 0 eingestellt wird (Standard: 1440, einmal pro Tag). +channel-type.deconz.ct.label = Farbtemperatur +channel-type.deconz.ct.description = Steuert die Farbtemperatur des Lichts in Kelvin. + channel-type.deconz.last_updated.label = Letzte Aktualisierung channel-type.deconz.last_updated.description = Zeit, zu der sich dieser Wert geändert hat. channel-type.deconz.last_updated.options.pattern = %1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS diff --git a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/group-thing-types.xml b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/group-thing-types.xml index f56d300fd..dda792466 100644 --- a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/group-thing-types.xml +++ b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/group-thing-types.xml @@ -14,7 +14,7 @@ - + @@ -24,19 +24,6 @@ - - String - - Alarm - - - - - - - - - Switch @@ -57,24 +44,6 @@ - - Color - - Colorpicker - - Lighting - - - - - Number - - - Lighting - - - - String @@ -83,5 +52,4 @@ - diff --git a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/light-thing-types.xml b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/light-thing-types.xml index 4339cae22..94ef679fd 100644 --- a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/light-thing-types.xml +++ b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/light-thing-types.xml @@ -43,7 +43,7 @@ A light that can be turned on or off. - + @@ -60,7 +60,7 @@ A dimmable light. Lightbulb - + @@ -78,7 +78,7 @@ A dimmable light with adjustable color temperature. Lightbulb - + @@ -97,7 +97,7 @@ A dimmable light with adjustable color. Lightbulb - + @@ -115,8 +115,8 @@ A dimmable light with adjustable color. Lightbulb - - + + @@ -149,41 +149,12 @@ - - Switch - - Switch - - Switchable - - - - - Dimmer - - Slider - - Lighting - - - - - - Color - - Colorpicker - - Lighting - - - Number - - Lighting - - + Controls the color temperature of the light in Kelvin + ColorLight + @@ -226,4 +197,5 @@ Switch + diff --git a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml index a0c93106d..5f26c7ff4 100644 --- a/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml +++ b/bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/sensor-thing-types.xml @@ -106,7 +106,7 @@ - + @@ -117,13 +117,6 @@ - - Color - - Allows to control a color - - -