From 14446159c8e92a2782589b87ba96f73b95d69f26 Mon Sep 17 00:00:00 2001 From: Sven Jochems Date: Sat, 18 Jan 2025 16:43:35 +0100 Subject: [PATCH 1/3] Add attribute to enable state reporting for Niko switches --- src/zspec/zcl/definition/cluster.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zspec/zcl/definition/cluster.ts b/src/zspec/zcl/definition/cluster.ts index 3877215b01..f9c2f2f915 100644 --- a/src/zspec/zcl/definition/cluster.ts +++ b/src/zspec/zcl/definition/cluster.ts @@ -4271,6 +4271,7 @@ export const Clusters: Readonly> ID: 0xfc01, manufacturerCode: ManufacturerCode.NIKO_NV, attributes: { + switchActionReporting: {ID: 0x0001, type: DataType.BITMAP8}, switchAction: {ID: 0x0002, type: DataType.UINT8}, }, commands: {}, From 16145accb7900e5e2fb56fccfc27ca8057c8549c Mon Sep 17 00:00:00 2001 From: svenjochems Date: Tue, 28 Jan 2025 13:10:36 +0100 Subject: [PATCH 2/3] Remove Niko specific clusters --- src/zspec/zcl/definition/cluster.ts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/zspec/zcl/definition/cluster.ts b/src/zspec/zcl/definition/cluster.ts index f9c2f2f915..408023e157 100644 --- a/src/zspec/zcl/definition/cluster.ts +++ b/src/zspec/zcl/definition/cluster.ts @@ -4251,32 +4251,6 @@ export const Clusters: Readonly> }, commandsResponse: {}, }, - manuSpecificNiko1: { - ID: 0xfc00, - manufacturerCode: ManufacturerCode.NIKO_NV, - attributes: { - /* WARNING: 0x0000 has different datatypes! - * enum8 (switch) vs. bitmap8 (outlet) - * unknown usage/function on outlet - */ - switchOperationMode: {ID: 0x0000, type: DataType.ENUM8}, - outletLedColor: {ID: 0x0100, type: DataType.UINT24}, - outletChildLock: {ID: 0x0101, type: DataType.UINT8}, - outletLedState: {ID: 0x0104, type: DataType.UINT8}, - }, - commands: {}, - commandsResponse: {}, - }, - manuSpecificNiko2: { - ID: 0xfc01, - manufacturerCode: ManufacturerCode.NIKO_NV, - attributes: { - switchActionReporting: {ID: 0x0001, type: DataType.BITMAP8}, - switchAction: {ID: 0x0002, type: DataType.UINT8}, - }, - commands: {}, - commandsResponse: {}, - }, wiserDeviceInfo: { ID: 0xfe03, // 65027 attributes: { From 68f1f4fbfa6f06f91e03658b405748670a9fe523 Mon Sep 17 00:00:00 2001 From: svenjochems Date: Tue, 28 Jan 2025 13:20:25 +0100 Subject: [PATCH 3/3] Remove niko clusters from tstypes --- src/zspec/zcl/definition/tstype.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/zspec/zcl/definition/tstype.ts b/src/zspec/zcl/definition/tstype.ts index bd7680d128..e8b2626e33 100644 --- a/src/zspec/zcl/definition/tstype.ts +++ b/src/zspec/zcl/definition/tstype.ts @@ -204,8 +204,6 @@ export type ClusterName = | 'manuSpecificLegrandDevices' | 'manuSpecificLegrandDevices2' | 'manuSpecificLegrandDevices3' - | 'manuSpecificNiko1' - | 'manuSpecificNiko2' | 'wiserDeviceInfo' | 'manuSpecificTuya' | 'manuSpecificLumi'