From 9052aabc09ea24abf01069080b8f7078b1d0a86a Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Thu, 11 Jul 2024 12:24:46 +0200 Subject: [PATCH] fix: do not return any CC values for the controller (#7002) --- packages/zwave-js/src/lib/node/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/zwave-js/src/lib/node/utils.ts b/packages/zwave-js/src/lib/node/utils.ts index e7a51da1945f..6be088f67d33 100644 --- a/packages/zwave-js/src/lib/node/utils.ts +++ b/packages/zwave-js/src/lib/node/utils.ts @@ -311,6 +311,9 @@ export function getDefinedValueIDsInternal( node: IZWaveNode, includeInternal: boolean = false, ): TranslatedValueID[] { + // The controller has no values. Even if some ended up in the cache somehow, do not return any. + if (applHost.isControllerNode(node.id)) return []; + let ret: ValueID[] = []; const allowControlled: CommandClasses[] = [ CommandClasses["Scene Activation"],