]> git.basschouten.com Git - openhab-addons.git/commitdiff
[hue] Use system default channel types for lights (#9856)
authorChristoph Weitkamp <github@christophweitkamp.de>
Tue, 19 Jan 2021 07:01:30 +0000 (08:01 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 07:01:30 +0000 (23:01 -0800)
* Use system default channel types for lights

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/i18n/hue_de.properties
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/i18n/hue_fr.properties
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/ColorLight.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/ColorTemperatureLight.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/DimmableLight.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/DimmablePlug.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/ExtendedColorLight.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Group.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/OnOffLight.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/OnOffPlug.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml

index 95344cb0c3ddbda25a09bbdfd8325a6b398afe50..b40602f2879051b5ec2e571933c1e9efb26b2fbf 100644 (file)
@@ -96,14 +96,6 @@ thing-type.config.hue.geofencesensor.on.label = Sensor Status
 thing-type.config.hue.geofencesensor.on.description = Aktiviert oder deaktiviert den Sensor.
 
 # channel types
-channel-type.hue.color.label = Farbe
-channel-type.hue.color.description = Ermöglicht die Steuerung der Farbe. Ermöglicht ebenfalls die Lampe zu dimmen oder ein- und auszuschalten.
-channel-type.hue.brightness.label = Helligkeit
-channel-type.hue.brightness.description = Ermöglicht die Steuerung der Helligkeit. Ermöglicht ebenfalls die Lampe ein- und auszuschalten.
-channel-type.hue.switch.label = Schalter
-channel-type.hue.switch.description = Ermöglicht das Ein- und Ausschalten.
-channel-type.hue.color_temperature.label = Farbtemperatur
-channel-type.hue.color_temperature.description = Ermöglicht die Steuerung der Farbtemperatur. Von Tageslichtweiß (0) bis Warmweiß (100).
 channel-type.hue.alert.label = Alarm
 channel-type.hue.alert.description = Ermöglicht ein temporäres Blinken.
 channel-type.hue.alert.state.option.NONE = Kein Blinken
index 6fc186e11b94e9dec3d1d9e3dc9b34d12adddd55..278bced7ecb4d05e3c5b699f899e34e8071df2c6 100644 (file)
@@ -47,14 +47,6 @@ thing-type.config.hue.group.groupId.label = ID groupe
 thing-type.config.hue.group.groupId.description = L'identifiant de groupe identifie l'un des groupes d'ampoules hue ou une pièce.
 
 # channel types
-channel-type.hue.color.label = Couleur
-channel-type.hue.color.description = Permet de contrôler la couleur de l'ampoule. Il est également possible d'allumer ou d'éteindre l'ampoule ainsi que de faire varier son intensité lumineuse.
-channel-type.hue.brightness.label = Intensité lumineuse
-channel-type.hue.brightness.description = Permet de contrôler l'intensité lumineuse de l'ampoule. Il est également possible d'allumer ou d'éteindre l'ampoule.
-channel-type.hue.switch.label = Commutateur
-channel-type.hue.switch.description = Permet d'allumer ou d'éteindre l'ampoule.
-channel-type.hue.color_temperature.label = Température couleur
-channel-type.hue.color_temperature.description = Permet de choisir la température de couleur de l'ampoule entre 0 (froid) et 100 (chaud).
 channel-type.hue.alert.label = Mode alerte
 channel-type.hue.alert.description = Permet un changement temporaire de l'état de l'ampoule.
 channel-type.hue.alert.state.option.NONE = Sans alerte
index 93b73f3bf94cb968bfcd53da6d3131317a475902..b76386919b9ab37fddeffc623cb832229d31e052 100644 (file)
@@ -13,7 +13,7 @@
                <description>A dimmable light with changeable colors.</description>
 
                <channels>
-                       <channel id="color" typeId="color"/>
+                       <channel id="color" typeId="system.color"/>
                        <channel id="alert" typeId="alert"/>
                        <channel id="effect" typeId="effect"/>
                </channels>
index 48ae90d0704d5bfa2d1d5a8cc090dd3cf813cd12..e1b759eb77f59f250af5603bc19f392c68b86b46 100644 (file)
@@ -13,8 +13,8 @@
                <description>A dimmable light with tunable color temperature.</description>
 
                <channels>
-                       <channel id="color_temperature" typeId="color_temperature"/>
-                       <channel id="brightness" typeId="brightness"/>
+                       <channel id="color_temperature" typeId="system.color-temperature"/>
+                       <channel id="brightness" typeId="system.brightness"/>
                        <channel id="alert" typeId="alert"/>
                        <channel id="effect" typeId="effect"/>
                </channels>
index 5691ef7b7e5f45076145848daa9e8df5a4ae0991..d68de9b6006db6d7d4fa4cf9ca8f65b05459ffa4 100644 (file)
@@ -13,7 +13,7 @@
                <description>A dimmable light.</description>
 
                <channels>
-                       <channel id="brightness" typeId="brightness"/>
+                       <channel id="brightness" typeId="system.brightness"/>
                        <channel id="alert" typeId="alert"/>
                </channels>
 
index 16a0a8950b9e21ee66a9182516e4b3aaa47f886b..6a272f9b70c8ece719a149f13332cf35a144872e 100644 (file)
@@ -13,7 +13,7 @@
                <description>An outlet that can be dimmed.</description>
 
                <channels>
-                       <channel id="brightness" typeId="brightness"/>
+                       <channel id="brightness" typeId="system.brightness"/>
                </channels>
 
                <representation-property>uniqueId</representation-property>
index b174a710a0dfd7bdbc00311884df7cfb97b61e8f..a4b4363df58d160b06f28c3f644fe446a86d75e3 100644 (file)
@@ -13,8 +13,8 @@
                <description>A dimmable light with changeable colors and tunable color temperature.</description>
 
                <channels>
-                       <channel id="color" typeId="color"/>
-                       <channel id="color_temperature" typeId="color_temperature"/>
+                       <channel id="color" typeId="system.color"/>
+                       <channel id="color_temperature" typeId="system.color-temperature"/>
                        <channel id="alert" typeId="alert"/>
                        <channel id="effect" typeId="effect"/>
                </channels>
index ef63ea106e9fa3e0137115ce652aa9d7c2165ec2..a863b9d27c1bd50fbc1d5333e061ea44e68a4bed 100644 (file)
                <description>A group of lights or a room that could be switched on and off.</description>
 
                <channels>
-                       <channel id="switch" typeId="switch"/>
-                       <channel id="color_temperature" typeId="color_temperature"/>
-                       <channel id="brightness" typeId="brightness"/>
-                       <channel id="color" typeId="color"/>
+                       <channel id="switch" typeId="system.power"/>
+                       <channel id="color_temperature" typeId="system.color-temperature"/>
+                       <channel id="brightness" typeId="system.brightness"/>
+                       <channel id="color" typeId="system.color"/>
                        <channel id="alert" typeId="alert"/>
                        <channel id="scene" typeId="scene"/>
                </channels>
index 0588be99099874acf4369caf8159383d231975f2..b2fd1f6259caa15e21291682180489b60e6e9bbe 100644 (file)
@@ -13,7 +13,7 @@
                <description>A light that could be switched on and off.</description>
 
                <channels>
-                       <channel id="switch" typeId="switch"/>
+                       <channel id="switch" typeId="system.power"/>
                        <channel id="alert" typeId="alert"/>
                </channels>
 
index 6c89fd87a8afde4ce55d1199e086cfbdc253751a..ee1771da33da5364c5bbabe68bb921e5a1f969c1 100644 (file)
@@ -13,7 +13,7 @@
                <description>An outlet that could be switched on and off.</description>
 
                <channels>
-                       <channel id="switch" typeId="switch"/>
+                       <channel id="switch" typeId="system.power"/>
                </channels>
 
                <representation-property>uniqueId</representation-property>
index e9db724a582d9e22c0f0428b853ed4925f0e7eec..281643b64975a0bafd1082e18dc060c9cc4991fd 100644 (file)
@@ -3,34 +3,6 @@
        xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
        xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
 
-       <!-- Color Channel -->
-       <channel-type id="color">
-               <item-type>Color</item-type>
-               <label>Color</label>
-               <description>The color channel allows to control the color of a light.
-                       It is also possible to dim values and switch the
-                       light on and off.
-               </description>
-               <category>ColorLight</category>
-               <tags>
-                       <tag>Lighting</tag>
-               </tags>
-       </channel-type>
-
-       <!-- Brightness Channel -->
-       <channel-type id="brightness">
-               <item-type>Dimmer</item-type>
-               <label>Brightness</label>
-               <description>The brightness channel allows to control the brightness of a light.
-                       It is also possible to switch the
-                       light on and off.
-               </description>
-               <category>Light</category>
-               <tags>
-                       <tag>Lighting</tag>
-               </tags>
-       </channel-type>
-
        <channel-type id="last_updated">
                <item-type>DateTime</item-type>
                <label>Last Updated</label>
                </event>
        </channel-type>
 
-       <!-- Switch Channel -->
-       <channel-type id="switch">
-               <item-type>Switch</item-type>
-               <label>Switch</label>
-               <description>The switch channel allows to switch the light on and off.
-               </description>
-               <category>Light</category>
-               <tags>
-                       <tag>Lighting</tag>
-               </tags>
-       </channel-type>
-
        <!-- Temperature Channel -->
        <channel-type id="temperature">
                <item-type>Number:Temperature</item-type>
                <state readOnly="true" pattern="%.1f %unit%"/>
        </channel-type>
 
-       <!-- Color Temperature Channel -->
-       <channel-type id="color_temperature">
-               <item-type>Dimmer</item-type>
-               <label>Color Temperature</label>
-               <description>The color temperature channel allows to set the color
-                       temperature of a light from 0 (cold) to 100 (warm).
-               </description>
-               <category>ColorLight</category>
-       </channel-type>
-
        <!-- Alert Channel -->
        <channel-type id="alert" advanced="true">
                <item-type>String</item-type>