]> git.basschouten.com Git - openhab-addons.git/commitdiff
[deconz] add categories and tags to lights (where applicable) (#9257)
authorJ-N-K <J-N-K@users.noreply.github.com>
Tue, 8 Dec 2020 00:02:32 +0000 (01:02 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 00:02:32 +0000 (16:02 -0800)
* add categories and tags (where applicable)
* also add tags for groups

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/group-thing-types.xml
bundles/org.openhab.binding.deconz/src/main/resources/OH-INF/thing/light-thing-types.xml

index 6b6cd10e4f88329f9eb2ada86e601c16b1e13f19..691c210220e2079fb868d03a695eb42259ad1f2f 100644 (file)
@@ -9,6 +9,7 @@
                        <bridge-type-ref id="deconz"/>
                </supported-bridge-type-refs>
                <label>Light Group</label>
+               <category>Lightbulb</category>
                <channels>
                        <channel typeId="all_on" id="all_on"/>
                        <channel typeId="any_on" id="any_on"/>
        <channel-type id="alert">
                <item-type>Switch</item-type>
                <label>Alert</label>
+               <category>Alarm</category>
        </channel-type>
 
        <channel-type id="all_on">
                <item-type>Switch</item-type>
                <label>All On</label>
                <description>"On" if all lights in this group are "On", otherwise "Off".</description>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
                <state readOnly="true"/>
        </channel-type>
 
                <item-type>Switch</item-type>
                <label>Any On</label>
                <description>"On" if any light in this group is "On", otherwise "Off".</description>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
+               <state readOnly="true"/>
        </channel-type>
 
        <channel-type id="color">
                <item-type>Color</item-type>
                <label>Color</label>
+               <category>Colorpicker</category>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
        </channel-type>
 
        <channel-type id="ct">
                <item-type>Number</item-type>
                <label>Color Temperature</label>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
                <state pattern="%d K" min="15" max="100000" step="100"/>
        </channel-type>
 
index ce7c74b78ff36a98ef67a17314892f38247d70d4..745c2f108273bef93fbae9b5d66f7ee9b53094f0 100644 (file)
@@ -10,6 +10,7 @@
                </supported-bridge-type-refs>
                <label>Warning Device</label>
                <description>A warning device</description>
+               <category>Siren</category>
                <channels>
                        <channel id="alert" typeId="alert"></channel>
                </channels>
@@ -25,6 +26,7 @@
                </supported-bridge-type-refs>
                <label>Window Covering</label>
                <description>A device to cover windows.</description>
+               <category>Blinds</category>
                <channels>
                        <channel typeId="position" id="position"/>
                </channels>
@@ -55,6 +57,7 @@
                </supported-bridge-type-refs>
                <label>Dimmable Light</label>
                <description>A dimmable light.</description>
+               <category>Lightbulb</category>
                <channels>
                        <channel typeId="brightness" id="brightness"/>
                </channels>
@@ -70,6 +73,7 @@
                </supported-bridge-type-refs>
                <label>Color-Temperature Light</label>
                <description>A dimmable light with adjustable color temperature.</description>
+               <category>Lightbulb</category>
                <channels>
                        <channel typeId="brightness" id="brightness"/>
                        <channel typeId="ct" id="color_temperature"/>
@@ -86,6 +90,7 @@
                </supported-bridge-type-refs>
                <label>Color Light</label>
                <description>A dimmable light with adjustable color.</description>
+               <category>Lightbulb</category>
                <channels>
                        <channel typeId="color" id="color"/>
                </channels>
                </supported-bridge-type-refs>
                <label>Color Light</label>
                <description>A dimmable light with adjustable color.</description>
+               <category>Lightbulb</category>
                <channels>
                        <channel typeId="color" id="color"/>
                        <channel typeId="ct" id="color_temperature"/>
                </supported-bridge-type-refs>
                <label>Doorlock</label>
                <description>A doorlock that can be locked (ON) or unlocked (OFF).</description>
+               <category>Lock</category>
                <channels>
                        <channel typeId="lock" id="switch"/>
                </channels>
        <channel-type id="position">
                <item-type>Rollershutter</item-type>
                <label>Position</label>
+               <category>Rollershutter</category>
                <state pattern="%.1f %%"/>
        </channel-type>
 
        <channel-type id="onoff">
                <item-type>Switch</item-type>
                <label>On/Off</label>
+               <category>Switch</category>
+               <tags>
+                       <tag>Switchable</tag>
+               </tags>
        </channel-type>
 
        <channel-type id="brightness">
                <item-type>Dimmer</item-type>
                <label>Brightness</label>
+               <category>Slider</category>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
                <state pattern="%.1f %%"/>
        </channel-type>
 
        <channel-type id="color">
                <item-type>Color</item-type>
                <label>Color</label>
+               <category>Colorpicker</category>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
        </channel-type>
 
        <channel-type id="ct">
                <item-type>Number</item-type>
                <label>Color Temperature</label>
+               <tags>
+                       <tag>Lighting</tag>
+               </tags>
                <state pattern="%d K" min="15" max="100000" step="100"/>
        </channel-type>
 
        <channel-type id="alert">
                <item-type>Switch</item-type>
                <label>Alert</label>
+               <category>Alarm</category>
        </channel-type>
 
        <channel-type id="lock">