From a0df376ad8a2f7e5036ed5a15aed92e4255ed5d4 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Thu, 30 Nov 2023 22:58:35 +0100 Subject: [PATCH] Use auto update policy 'veto' for light channels Resolves #15983 Signed-off-by: Jacob Laursen --- .../resources/OH-INF/thing/Clip2Thing.xml | 32 +++++++++++-------- .../main/resources/OH-INF/thing/channels.xml | 6 ++++ .../resources/OH-INF/update/instructions.xml | 18 +++++++++++ 3 files changed, 42 insertions(+), 14 deletions(-) diff --git a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Clip2Thing.xml b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Clip2Thing.xml index 33f5d935c5608..ae1a34aeba55e 100644 --- a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Clip2Thing.xml +++ b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/Clip2Thing.xml @@ -13,10 +13,18 @@ A Hue API v2 device with channels depending on its actual capabilities. - - - - + + veto + + + veto + + + veto + + + veto + Activate the alert for the light. @@ -85,20 +93,16 @@ - - - Set the color xy parameter of the light without changing other state parameters. - - - Set the dimming parameter of the light without changing other state parameters. - - - Set the on/off parameter of the light without changing other state parameters. + + veto + + + - 1 + 2 resourceId diff --git a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml index c1f82b5516ac7..d4ba6e9b70f2e 100644 --- a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml +++ b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/thing/channels.xml @@ -240,20 +240,26 @@ Color + Set the color xy parameter of the light without changing other state parameters. ColorLight + veto Dimmer + Set the dimming parameter of the light without changing other state parameters. Light + veto Switch + Set the on/off parameter of the light without changing other state parameters. Switch + veto diff --git a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/update/instructions.xml b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/update/instructions.xml index 4e851e97e4e7c..935e61b44de81 100644 --- a/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/update/instructions.xml +++ b/bundles/org.openhab.binding.hue/src/main/resources/OH-INF/update/instructions.xml @@ -33,6 +33,24 @@ + + + system:brightness + + + system:color + + + system:color-temperature + + + system:color-temperature-abs + + + system:power + + +