Skip to content

Add Time cluster attributes - #216

Merged
RobinBol merged 1 commit into
athombv:masterfrom
Drenso:time-cluster
Aug 28, 2026
Merged

RobinBol merged 1 commit into
athombv:masterfrom
Drenso:time-cluster

Conversation

@bobvandevijver

@bobvandevijver bobvandevijver commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Add Time cluster attributes.

Depends on athombv/node-data-types#49 (UTC date type), and will need a bump in the package.json before this is merged.

@RobinBol
RobinBol merged commit 7c2f1ab into athombv:master Aug 28, 2026
2 checks passed
RobinBol added a commit that referenced this pull request Aug 28, 2026
The Time cluster uses ZCLDataTypes.UTC, which was only added in 1.3.0.
With the lockfile still pinned to 1.2.1, npm ci resolved a version where
that type is undefined.

Refs #216
RobinBol added a commit that referenced this pull request Aug 28, 2026
ValidUntilTime is 0x0009 in the ZCL spec, not 0x0008. Because
attributesById is keyed by id, the duplicate dropped lastSetTime from
the lookup: reads and reports for 0x0008 decoded as validUntilTime, and
0x0009 was unknown.

Refs #216
RobinBol added a commit that referenced this pull request Aug 28, 2026
zclDataTypeToValueType had no case for UTC, so generate-types threw
"Unknown ZCL type UTC" as soon as a cluster used it. The type generation
workflow has been failing on master since the Time cluster attributes
landed, leaving index.d.ts without them.

Refs #216
@bobvandevijver
bobvandevijver deleted the time-cluster branch August 28, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants