Use auto update policy 'veto' for light channels (#15984)

Resolves #15983

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2023-12-05 18:56:46 +01:00 committed by GitHub
parent cff35b392d
commit 2fae1dd99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 16 deletions

View 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.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.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.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.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.description = Current light level.
thing-type.hue.device.channel.light-level-enabled.description = Light level sensor enabled. 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-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.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.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.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.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 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 types
channel-type.hue.advanced-brightness.label = Dimming Only 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.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.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-v2.label = Alert
channel-type.hue.alert.label = Alert channel-type.hue.alert.label = Alert
channel-type.hue.alert.description = The alert channel allows a temporary change to the bulbs state. channel-type.hue.alert.description = The alert channel allows a temporary change to the bulbs state.

View File

@ -13,10 +13,18 @@
<description>A Hue API v2 device with channels depending on its actual capabilities.</description> <description>A Hue API v2 device with channels depending on its actual capabilities.</description>
<channels> <channels>
<channel id="color" typeId="system.color"/> <channel id="color" typeId="system.color">
<channel id="color-temperature" typeId="system.color-temperature"/> <autoUpdatePolicy>veto</autoUpdatePolicy>
<channel id="brightness" typeId="system.brightness"/> </channel>
<channel id="switch" typeId="system.power"/> <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"> <channel id="alert" typeId="alert-v2">
<description>Activate the alert for the light.</description> <description>Activate the alert for the light.</description>
</channel> </channel>
@ -85,16 +93,12 @@
<channel id="battery-low" typeId="system.low-battery"/> <channel id="battery-low" typeId="system.low-battery"/>
<channel id="last-updated" typeId="last-updated-v2"/> <channel id="last-updated" typeId="last-updated-v2"/>
<channel id="dynamics" typeId="dynamics"/> <channel id="dynamics" typeId="dynamics"/>
<channel id="color-temperature-abs" typeId="system.color-temperature-abs"/> <channel id="color-temperature-abs" typeId="system.color-temperature-abs">
<channel id="color-xy-only" typeId="advanced-color"> <autoUpdatePolicy>veto</autoUpdatePolicy>
<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> </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> </channels>
<properties> <properties>

View File

@ -240,20 +240,26 @@
<channel-type id="advanced-color" advanced="true"> <channel-type id="advanced-color" advanced="true">
<item-type>Color</item-type> <item-type>Color</item-type>
<label>Color XY Only</label> <label>Color XY Only</label>
<description>Set the color xy parameter of the light without changing other state parameters.</description>
<category>ColorLight</category> <category>ColorLight</category>
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type> </channel-type>
<channel-type id="advanced-brightness" advanced="true"> <channel-type id="advanced-brightness" advanced="true">
<item-type>Dimmer</item-type> <item-type>Dimmer</item-type>
<label>Dimming Only</label> <label>Dimming Only</label>
<description>Set the dimming parameter of the light without changing other state parameters.</description>
<category>Light</category> <category>Light</category>
<state pattern="%.1f %%"/> <state pattern="%.1f %%"/>
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type> </channel-type>
<channel-type id="advanced-power" advanced="true"> <channel-type id="advanced-power" advanced="true">
<item-type>Switch</item-type> <item-type>Switch</item-type>
<label>On/Off Only</label> <label>On/Off Only</label>
<description>Set the on/off parameter of the light without changing other state parameters.</description>
<category>Switch</category> <category>Switch</category>
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type> </channel-type>
<channel-type id="security-contact"> <channel-type id="security-contact">