Skip to content

Add StartUpOnOff and GlobalSceneControl attributes to On/Off cluster - #202

Merged
RobinBol merged 1 commit into
masterfrom
feature/onoff-startuponoff-attribute
Jul 22, 2026
Merged

RobinBol merged 1 commit into
masterfrom
feature/onoff-startuponoff-attribute

Conversation

@RobinBol

Copy link
Copy Markdown
Collaborator

What

Adds the two On/Off cluster (0x0006) attributes that were missing per the ZCL spec (r8, section 3.8.2.2):

ID Name Type
0x4000 globalSceneControl bool
0x4003 startUpOnOff enum8

startUpOnOff enables configuring power-on behavior. Enum values follow ZCL Table 3-46:

  • off (0x00) - set OnOff to off on power up
  • on (0x01) - set OnOff to on on power up
  • toggle (0x02) - toggle previous OnOff value
  • previous (0xff) - restore previous OnOff value

Why

startUpOnOff (power-on behavior) was not exposed by the library, so it couldn't be read/written. globalSceneControl was also missing from the same cluster per spec.

Notes

  • Enum keys use the spec semantics (off/on/toggle/previous) rather than friendly aliases.
  • index.d.ts regenerated via npm run generate-types.
  • Existing tests pass, lint clean.

Adds the two On/Off cluster (0x0006) attributes missing per ZCL spec r8:
- globalSceneControl (0x4000, bool)
- startUpOnOff (0x4003, enum8) with spec values off/on/toggle/previous
  per Table 3-46, enabling power-on behavior configuration.
@RobinBol
RobinBol merged commit f943fce into master Jul 22, 2026
3 checks passed
@RobinBol
RobinBol deleted the feature/onoff-startuponoff-attribute branch July 22, 2026 12:55
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