From 993e6b8895d389404ced2090cc8850847cd6bec8 Mon Sep 17 00:00:00 2001 From: asgothian <45667167+asgothian@users.noreply.github.com> Date: Sat, 28 Dec 2024 15:43:45 +0100 Subject: [PATCH] fix hue_calibration --- lib/exposes.js | 1 + main.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/exposes.js b/lib/exposes.js index 3b2b150f..a7ad5db6 100644 --- a/lib/exposes.js +++ b/lib/exposes.js @@ -492,6 +492,7 @@ function createFromExposes(model, def) { hue_correction: hue_correction_table }; } + delete options.hue_calibration; } return {...options, transition: transitionTime}; }, diff --git a/main.js b/main.js index 10014af3..f36f79a3 100644 --- a/main.js +++ b/main.js @@ -752,6 +752,10 @@ class Zigbee extends utils.Adapter { const preparedValue = (stateDesc.setter) ? stateDesc.setter(value, options) : value; const preparedOptions = (stateDesc.setterOpt) ? stateDesc.setterOpt(value, options) : {}; + if (preparedOptions.hasOwnProperty('hue_calibration')) { + delete preparedOptions.hue_calibration; + } + let syncStateList = []; if (stateModel && stateModel.syncStates) { stateModel.syncStates.forEach(syncFunct => { @@ -782,7 +786,7 @@ class Zigbee extends utils.Adapter { this.log.debug(`target: ${safeJsonStringify(target)}`); - const meta = { + const meta = { endpoint_name: epName, options: preparedOptions, device: entity.device,