From 429c5aea585da1525347adc13712bc556b4ea2ae Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 26 Apr 2026 22:05:21 +0200 Subject: [PATCH] fix(ignore): update zigbee-herdsman-converters to 26.40.0 (#31800) Co-authored-by: Mikhail Samin --- package.json | 2 +- pnpm-lock.yaml | 10 ++-- test/extensions/bridge.test.ts | 70 +++++++++++++++++++++++---- test/extensions/frontend.test.ts | 6 +++ test/extensions/homeassistant.test.ts | 42 ++++++++++++++++ test/extensions/networkMap.test.ts | 6 +-- 6 files changed, 117 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index daf0ef03c..4f29f2d3e 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "winston-transport": "^4.9.0", "ws": "^8.20.0", "zigbee-herdsman": "10.0.7", - "zigbee-herdsman-converters": "26.39.1", + "zigbee-herdsman-converters": "26.40.0", "zigbee2mqtt-frontend": "0.9.21", "zigbee2mqtt-windfront": "2.11.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ea57fa350..d50a1bde2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,8 +75,8 @@ importers: specifier: 10.0.7 version: 10.0.7 zigbee-herdsman-converters: - specifier: 26.39.1 - version: 26.39.1 + specifier: 26.40.0 + version: 26.40.0 zigbee2mqtt-frontend: specifier: 0.9.21 version: 0.9.21 @@ -1472,8 +1472,8 @@ packages: utf-8-validate: optional: true - zigbee-herdsman-converters@26.39.1: - resolution: {integrity: sha512-CopzHV9NNwNKypQv5TozRubgpUU+OVDCrzRgGwGRtmsqHmAysxF6QBWjguigRqzs5r/P5dDcigRUlDoDZC/+gA==} + zigbee-herdsman-converters@26.40.0: + resolution: {integrity: sha512-SAM7vMsqL/HoYc8g32T9dppn/mlxd7Ty3GCE+64NUb5BnQX+YJ4cyHqgmPOxxO1/bHXeg/Pb9/XoqYY6Gsejdg==} engines: {node: '>=20.15.0'} zigbee-herdsman@10.0.7: @@ -2759,7 +2759,7 @@ snapshots: ws@8.20.0: {} - zigbee-herdsman-converters@26.39.1: + zigbee-herdsman-converters@26.40.0: dependencies: iconv-lite: 0.7.2 semver: 7.7.4 diff --git a/test/extensions/bridge.test.ts b/test/extensions/bridge.test.ts index be80369e0..866778043 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 6cae78a42..4f061ac28 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 b126e2a70..95bcc7336 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 698ca1f6d..96b5e024c 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: [],