diff --git a/test/extensions/bridge.test.ts b/test/extensions/bridge.test.ts index be80369e06..866778043e 100644 --- a/test/extensions/bridge.test.ts +++ b/test/extensions/bridge.test.ts @@ -735,7 +735,7 @@ describe("Extension: Bridge", () => { values: ["off", "on", "toggle", "previous"], }, { - access: 2, + access: 3, label: "Effect", name: "effect", property: "effect", @@ -748,11 +748,40 @@ describe("Extension: Bridge", () => { "candle", "fireplace", "colorloop", + "sunset", + "sparkle", + "opal", + "glisten", + "underwater", + "cosmos", + "sunbeam", + "enchant", + "none", "finish_effect", "stop_effect", "stop_hue_effect", ], }, + { + access: 3, + description: "Animation speed for the active effect (0=slowest, 1=fastest)", + label: "Effect speed", + name: "effect_speed", + property: "effect_speed", + type: "numeric", + value_max: 1, + value_min: 0, + value_step: 0.01, + }, + { + access: 2, + description: + 'Set the base color of the active effect without stopping it (hex e.g. #FF4400, or JSON {"x":0.6,"y":0.3})', + label: "Effect color", + name: "effect_color", + property: "effect_color", + type: "text", + }, { access: 1, category: "diagnostic", @@ -768,6 +797,27 @@ describe("Extension: Bridge", () => { ], model: "7146060PH", options: [ + { + access: 2, + description: + "Control this light using a Philips-specific protocol instead of standard Zigbee commands. When enabled, on/off, brightness, color, and color temperature are combined into single atomic commands. This is required to use the Effect color update mode. When disabled (default), standard Zigbee commands are used, which preserves the usual behavior, including simulating on/off transitions.", + label: "Hue native control", + name: "hue_native_control", + property: "hue_native_control", + type: "binary", + value_off: false, + value_on: true, + }, + { + access: 2, + description: + "Controls what happens when color is changed while an effect is active (requires Hue native control). 'stop' (default): color change stops the effect (Hue app behavior). 'update': color change re-sends the effect with the new color.", + label: "Effect color mode", + name: "effect_color_mode", + property: "effect_color_mode", + type: "enum", + values: ["stop", "update"], + }, { access: 2, description: @@ -781,21 +831,21 @@ describe("Extension: Bridge", () => { }, { access: 2, - description: - "When enabled colors will be synced, e.g. if the light supports both color x/y and color temperature a conversion from color x/y to color temperature will be done when setting the x/y color (default true).", - label: "Color sync", - name: "color_sync", - property: "color_sync", + description: "State actions will also be published as 'action' when true (default false).", + label: "State action", + name: "state_action", + property: "state_action", type: "binary", value_off: false, value_on: true, }, { access: 2, - description: "State actions will also be published as 'action' when true (default false).", - label: "State action", - name: "state_action", - property: "state_action", + description: + "When enabled colors will be synced, e.g. if the light supports both color x/y and color temperature a conversion from color x/y to color temperature will be done when setting the x/y color (default true).", + label: "Color sync", + name: "color_sync", + property: "color_sync", type: "binary", value_off: false, value_on: true, diff --git a/test/extensions/frontend.test.ts b/test/extensions/frontend.test.ts index 6cae78a428..4f061ac283 100644 --- a/test/extensions/frontend.test.ts +++ b/test/extensions/frontend.test.ts @@ -245,6 +245,8 @@ describe("Extension: Frontend", () => { stringify({ state: "ON", effect: null, + effect_color: null, + effect_speed: null, power_on_behavior: null, linkquality: 20, update: {state: null, installed_version: -1, latest_version: -1}, @@ -269,6 +271,8 @@ describe("Extension: Frontend", () => { state: "ON", power_on_behavior: null, effect: null, + effect_color: null, + effect_speed: null, linkquality: 20, update: {state: null, installed_version: -1, latest_version: -1}, }, @@ -296,6 +300,8 @@ describe("Extension: Frontend", () => { brightness: 90, power_on_behavior: null, effect: null, + effect_color: null, + effect_speed: null, linkquality: 20, update: {state: null, installed_version: -1, latest_version: -1}, }, diff --git a/test/extensions/homeassistant.test.ts b/test/extensions/homeassistant.test.ts index b126e2a701..95bcc73362 100644 --- a/test/extensions/homeassistant.test.ts +++ b/test/extensions/homeassistant.test.ts @@ -164,6 +164,15 @@ describe("Extension: HomeAssistant", () => { "candle", "fireplace", "colorloop", + "sunset", + "sparkle", + "opal", + "glisten", + "underwater", + "cosmos", + "sunbeam", + "enchant", + "none", "finish_effect", "stop_effect", "stop_hue_effect", @@ -1561,6 +1570,8 @@ describe("Extension: HomeAssistant", () => { color: {hue: 0, saturation: 100, h: 0, s: 100}, color_mode: "hs", effect: null, + effect_color: null, + effect_speed: null, linkquality: null, state: null, power_on_behavior: null, @@ -1584,6 +1595,8 @@ describe("Extension: HomeAssistant", () => { color: {x: 0.4576, y: 0.41}, color_mode: "xy", effect: null, + effect_color: null, + effect_speed: null, linkquality: null, state: null, power_on_behavior: null, @@ -1606,6 +1619,8 @@ describe("Extension: HomeAssistant", () => { stringify({ linkquality: null, effect: null, + effect_color: null, + effect_speed: null, state: "ON", power_on_behavior: null, update: {state: null, installed_version: -1, latest_version: -1}, @@ -1968,6 +1983,15 @@ describe("Extension: HomeAssistant", () => { "candle", "fireplace", "colorloop", + "sunset", + "sparkle", + "opal", + "glisten", + "underwater", + "cosmos", + "sunbeam", + "enchant", + "none", "finish_effect", "stop_effect", "stop_hue_effect", @@ -2438,6 +2462,15 @@ describe("Extension: HomeAssistant", () => { "candle", "fireplace", "colorloop", + "sunset", + "sparkle", + "opal", + "glisten", + "underwater", + "cosmos", + "sunbeam", + "enchant", + "none", "finish_effect", "stop_effect", "stop_hue_effect", @@ -2484,6 +2517,15 @@ describe("Extension: HomeAssistant", () => { "candle", "fireplace", "colorloop", + "sunset", + "sparkle", + "opal", + "glisten", + "underwater", + "cosmos", + "sunbeam", + "enchant", + "none", "finish_effect", "stop_effect", "stop_hue_effect", diff --git a/test/extensions/networkMap.test.ts b/test/extensions/networkMap.test.ts index 698ca1f6de..96b5e024c2 100644 --- a/test/extensions/networkMap.test.ts +++ b/test/extensions/networkMap.test.ts @@ -286,7 +286,7 @@ describe("Extension: NetworkMap", () => { description: "Hue Go", model: "7146060PH", supports: - "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, linkquality", + "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, effect_speed, effect_color, linkquality", vendor: "Philips", }, failed: [], @@ -616,7 +616,7 @@ describe("Extension: NetworkMap", () => { description: "Hue Go", model: "7146060PH", supports: - "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, linkquality", + "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, effect_speed, effect_color, linkquality", vendor: "Philips", }, failed: [], @@ -785,7 +785,7 @@ describe("Extension: NetworkMap", () => { description: "Hue Go", model: "7146060PH", supports: - "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, linkquality", + "light (state, brightness, color_temp, color_temp_startup, color_xy, color_hs), power_on_behavior, effect, effect_speed, effect_color, linkquality", vendor: "Philips", }, failed: [],