Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorTemperatureMireds range is wrong #17456

Closed
pankore opened this issue Apr 18, 2022 · 2 comments
Closed

ColorTemperatureMireds range is wrong #17456

pankore opened this issue Apr 18, 2022 · 2 comments

Comments

@pankore
Copy link
Contributor

pankore commented Apr 18, 2022

Problem

  • According to spec, the ColorTemperatureMireds should be ranging from 0 to 0xfeff
  • Also from spec, actual color temperature = 1000000 / ColorTemperatureMireds
  • However, running ./chip-tool colorcontrol move-to-color-temperature 256 0 0 0 1234 1 will make the color temperature loop over to 0
  • It is changing the color temperature attribute instead of ColorTemperatureMireds. Related to ColorTemperature attribute name and command field is not aligned with spec #12372.
@bzbarsky-apple
Copy link
Contributor

I can't reproduce this problem.... Specifically, if I run the following commands after commissioning a node running chip-all-clusters-app with node id 1234:

chip-tool onoff on 1234 1
chip-tool colorcontrol read color-temperature 1234 1
chip-tool colorcontrol move-to-color-temperature 256 0 0 0 1234 1
chip-tool colorcontrol read color-temperature 1234 1

I see a color temperature of 0 after the first read and 256 after the second read. @pankore Is it possible you were testing with the on/off bits set to off?

@pankore
Copy link
Contributor Author

pankore commented Apr 19, 2022

Thank you. I will close this issue.

@pankore pankore closed this as completed Apr 19, 2022
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

No branches or pull requests

2 participants