Skip to content

fix(time): Correct Time cluster attribute ids and unblock type generation - #217

Merged
RobinBol merged 3 commits into
masterfrom
fix/time-cluster-attributes
Aug 28, 2026
Merged

RobinBol merged 3 commits into
masterfrom
fix/time-cluster-attributes

Conversation

@RobinBol

@RobinBol RobinBol commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #216.

  • validUntilTime was id 0x0008, same as lastSetTime. attributesById is keyed by id, so 0x0008 decoded as validUntilTime and 0x0009 was unknown. ZCL r8 table 3-69 puts it at 0x0009.
  • generate-types had no case for UTC and threw, so the workflow has failed on every master push since Add Time cluster attributes #216. Regenerated index.d.ts here.
  • @athombv/data-types was pinned to ^1.2.1 in the lockfile, where ZCLDataTypes.UTC does not exist.

@RobinBol RobinBol self-assigned this 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
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
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
@RobinBol
RobinBol force-pushed the fix/time-cluster-attributes branch from fe1d25d to dbb458b Compare August 28, 2026 13:43
@RobinBol
RobinBol marked this pull request as ready for review August 28, 2026 13:45
@RobinBol
RobinBol merged commit 2050ed0 into master Aug 28, 2026
3 checks passed
@RobinBol
RobinBol deleted the fix/time-cluster-attributes branch August 28, 2026 13:45
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.

1 participant