Skip to content

Color Control#473

Merged
ivmarkov merged 14 commits into
project-chip:mainfrom
sysgrok:color-control
Jun 3, 2026
Merged

Color Control#473
ivmarkov merged 14 commits into
project-chip:mainfrom
sysgrok:color-control

Conversation

@ivmarkov
Copy link
Copy Markdown
Contributor

@ivmarkov ivmarkov commented Jun 2, 2026

... similar to Level Control and On-Off.

And quite complex!

With this, we should have a complete story for lights, where only a minimal effort is required by the implementors / integrators - implementing the Hooks traits.

Still a few open topics to be solved later:

  • Persistence of a few attributes (also valid of Level Control and likely On-Off)
  • Enable all On-Off and Level Control tests (some are not part of the suite yet)

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new 'light_tests' example binary that exercises the 'OnOff', 'LevelControl', and 'ColorControl' clusters, along with its corresponding PICS configuration. It also defines the 'DEV_TYPE_EXTENDED_COLOR_LIGHT' device type and updates the integration test suite to run these new tests instead of the older 'dimmable_light' tests. Feedback on the changes highlights a potential panic in 'OnOffDeviceLogic::new' when reading the persistent state file if it is empty or corrupted, suggesting a more robust error handling approach instead of using '.unwrap()'.

Comment thread examples/src/bin/light_tests.rs
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

PR #473: Size comparison from 1236da8 to 390e1bc

Full report (8 builds for (core), dimmable-light, onoff-light, onoff-light-bt, speaker)
platform target config section 1236da8 390e1bc change % change
(core) riscv32imac-unknown-none-elf infodefmt-optz-ltofat FLASH 449240 449236 -4 -0.0
RAM 71088 71088 0 0.0
thumbv6m-none-eabi infodefmt-optz-ltofat FLASH 363192 363156 -36 -0.0
RAM 66636 66636 0 0.0
thumbv7em-none-eabi infodefmt-optz-ltofat FLASH 340272 340292 20 0.0
RAM 66412 66404 -8 -0.0
x86_64-unknown-linux-gnu infologs-optz-ltofat FLASH 878323 878307 -16 -0.0
RAM 71402 71402 0 0.0
dimmable-light x86_64-unknown-linux-gnu infologs-optz-ltofat FLASH 2057336 2057352 16 0.0
RAM 60368 60368 0 0.0
onoff-light x86_64-unknown-linux-gnu infologs-optz-ltofat FLASH 1984008 1984056 48 0.0
RAM 59536 59536 0 0.0
onoff-light-bt x86_64-unknown-linux-gnu infologs-optz-ltofat FLASH 3505800 3505768 -32 -0.0
RAM 5776 5776 0 0.0
speaker x86_64-unknown-linux-gnu infologs-optz-ltofat FLASH 2019128 2019160 32 0.0
RAM 5472 5472 0 0.0

@ivmarkov ivmarkov merged commit e8b0b0c into project-chip:main Jun 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant