]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add semantic tags for advanced light channels (#16905)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sat, 22 Jun 2024 18:41:57 +0000 (20:41 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jun 2024 18:41:57 +0000 (20:41 +0200)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml

index d4ba6e9b70f2e36bbb24d9db89b782d043af0056..b25510071b6ba95feebeec475235727bfada02f7 100644 (file)
                <label>Color XY Only</label>
                <description>Set the color xy parameter of the light without changing other state parameters.</description>
                <category>ColorLight</category>
+               <tags>
+                       <tag>Control</tag>
+                       <tag>Light</tag>
+               </tags>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
                <label>Dimming Only</label>
                <description>Set the dimming parameter of the light without changing other state parameters.</description>
                <category>Light</category>
-               <state pattern="%.1f %%"/>
+               <tags>
+                       <tag>Control</tag>
+                       <tag>Light</tag>
+               </tags>
+               <state min="0" max="100" pattern="%.1f %%"/>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
                <label>On/Off Only</label>
                <description>Set the on/off parameter of the light without changing other state parameters.</description>
                <category>Switch</category>
+               <tags>
+                       <tag>Switch</tag>
+                       <tag>Power</tag>
+               </tags>
                <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>