]> git.basschouten.com Git - openhab-addons.git/commitdiff
Use auto update policy 'veto' for light channels (#15984)
authorJacob Laursen <jacob-github@vindvejr.dk>
Tue, 5 Dec 2023 17:56:46 +0000 (18:56 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Dec 2023 17:56:46 +0000 (18:56 +0100)
Resolves #15983

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/i18n/hue.properties
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Clip2Thing.xml
bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml

index 3fa66d65d9a0339a9f8b51182202468eda4efc6a..b6d1dbb42159aece43d76821e3abd44be0af0f69 100644 (file)
@@ -42,8 +42,6 @@ thing-type.hue.device.description = A Hue API v2 device with channels depending
 thing-type.hue.device.channel.alert.description = Activate the alert for the light.
 thing-type.hue.device.channel.button-last-updated.label = Button Last Updated
 thing-type.hue.device.channel.button-last-updated.description = The date and time when a button was last pressed.
-thing-type.hue.device.channel.color-xy-only.description = Set the color xy parameter of the light without changing other state parameters.
-thing-type.hue.device.channel.dimming-only.description = Set the dimming parameter of the light without changing other state parameters.
 thing-type.hue.device.channel.effect.description = Activate the effect for the light.
 thing-type.hue.device.channel.light-level.description = Current light level.
 thing-type.hue.device.channel.light-level-enabled.description = Light level sensor enabled.
@@ -52,7 +50,6 @@ thing-type.hue.device.channel.light-level-last-updated.description = The date an
 thing-type.hue.device.channel.motion-enabled.description = Motion sensor enabled.
 thing-type.hue.device.channel.motion-last-updated.label = Motion Last Updated
 thing-type.hue.device.channel.motion-last-updated.description = The date and time when the motion value was last updated.
-thing-type.hue.device.channel.on-off-only.description = Set the on/off parameter of the light without changing other state parameters.
 thing-type.hue.device.channel.rotary-steps-last-updated.label = Rotary Steps Last Updated
 thing-type.hue.device.channel.rotary-steps-last-updated.description = The date and time when the rotary steps were last updated.
 thing-type.hue.device.channel.security-contact.label = Security Contact
@@ -136,8 +133,11 @@ thing-type.config.hue.zone.resourceId.description = Unique Resource ID of the zo
 # channel types
 
 channel-type.hue.advanced-brightness.label = Dimming Only
+channel-type.hue.advanced-brightness.description = Set the dimming parameter of the light without changing other state parameters.
 channel-type.hue.advanced-color.label = Color XY Only
+channel-type.hue.advanced-color.description = Set the color xy parameter of the light without changing other state parameters.
 channel-type.hue.advanced-power.label = On/Off Only
+channel-type.hue.advanced-power.description = Set the on/off parameter of the light without changing other state parameters.
 channel-type.hue.alert-v2.label = Alert
 channel-type.hue.alert.label = Alert
 channel-type.hue.alert.description = The alert channel allows a temporary change to the bulb’s state.
index 33f5d935c5608a4f534cfcac69fb96f401d17791..3a0a77635065d3311ac4cc60358e70bbc5ef0414 100644 (file)
                <description>A Hue API v2 device with channels depending on its actual capabilities.</description>
 
                <channels>
-                       <channel id="color" typeId="system.color"/>
-                       <channel id="color-temperature" typeId="system.color-temperature"/>
-                       <channel id="brightness" typeId="system.brightness"/>
-                       <channel id="switch" typeId="system.power"/>
+                       <channel id="color" typeId="system.color">
+                               <autoUpdatePolicy>veto</autoUpdatePolicy>
+                       </channel>
+                       <channel id="color-temperature" typeId="system.color-temperature">
+                               <autoUpdatePolicy>veto</autoUpdatePolicy>
+                       </channel>
+                       <channel id="brightness" typeId="system.brightness">
+                               <autoUpdatePolicy>veto</autoUpdatePolicy>
+                       </channel>
+                       <channel id="switch" typeId="system.power">
+                               <autoUpdatePolicy>veto</autoUpdatePolicy>
+                       </channel>
                        <channel id="alert" typeId="alert-v2">
                                <description>Activate the alert for the light.</description>
                        </channel>
                        <channel id="battery-low" typeId="system.low-battery"/>
                        <channel id="last-updated" typeId="last-updated-v2"/>
                        <channel id="dynamics" typeId="dynamics"/>
-                       <channel id="color-temperature-abs" typeId="system.color-temperature-abs"/>
-                       <channel id="color-xy-only" typeId="advanced-color">
-                               <description>Set the color xy parameter of the light without changing other state parameters.</description>
-                       </channel>
-                       <channel id="dimming-only" typeId="advanced-brightness">
-                               <description>Set the dimming parameter of the light without changing other state parameters.</description>
-                       </channel>
-                       <channel id="on-off-only" typeId="advanced-power">
-                               <description>Set the on/off parameter of the light without changing other state parameters.</description>
+                       <channel id="color-temperature-abs" typeId="system.color-temperature-abs">
+                               <autoUpdatePolicy>veto</autoUpdatePolicy>
                        </channel>
+                       <channel id="color-xy-only" typeId="advanced-color"/>
+                       <channel id="dimming-only" typeId="advanced-brightness"/>
+                       <channel id="on-off-only" typeId="advanced-power"/>
                </channels>
 
                <properties>
index c1f82b5516ac7d2c67dbb72e9b5854d1ab6f15eb..d4ba6e9b70f2e36bbb24d9db89b782d043af0056 100644 (file)
        <channel-type id="advanced-color" advanced="true">
                <item-type>Color</item-type>
                <label>Color XY Only</label>
+               <description>Set the color xy parameter of the light without changing other state parameters.</description>
                <category>ColorLight</category>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
        <channel-type id="advanced-brightness" advanced="true">
                <item-type>Dimmer</item-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 %%"/>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
        <channel-type id="advanced-power" advanced="true">
                <item-type>Switch</item-type>
                <label>On/Off Only</label>
+               <description>Set the on/off parameter of the light without changing other state parameters.</description>
                <category>Switch</category>
+               <autoUpdatePolicy>veto</autoUpdatePolicy>
        </channel-type>
 
        <channel-type id="security-contact">