From 0058bc3dbda0735121f826dc452dde94bc9bbcc7 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Thu, 27 Aug 2026 12:22:26 +0200 Subject: [PATCH] Add Time cluster attributes --- lib/clusters/time.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/clusters/time.js b/lib/clusters/time.js index 4f98b596..fc502ce6 100644 --- a/lib/clusters/time.js +++ b/lib/clusters/time.js @@ -1,8 +1,22 @@ 'use strict'; const Cluster = require('../Cluster'); +const { ZCLDataTypes } = require('../zclTypes'); const ATTRIBUTES = { + time: { id: 0, type: ZCLDataTypes.UTC }, + timeStatus: { + id: 1, + type: ZCLDataTypes.map8('master', 'synchronized', 'masterZoneDst', 'superseding'), + }, + timeZone: { id: 2, type: ZCLDataTypes.int32 }, + dstStart: { id: 3, type: ZCLDataTypes.uint32 }, + dstEnd: { id: 4, type: ZCLDataTypes.uint32 }, + dstShift: { id: 5, type: ZCLDataTypes.int32 }, + standardTime: { id: 6, type: ZCLDataTypes.uint32 }, + localTime: { id: 7, type: ZCLDataTypes.uint32 }, + lastSetTime: { id: 8, type: ZCLDataTypes.UTC }, + validUntilTime: { id: 8, type: ZCLDataTypes.UTC }, }; const COMMANDS = {};