-
Notifications
You must be signed in to change notification settings - Fork 88.5k
[ICP-11209] Added on command to the setColorTemp() #11478
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My instinct would be that the
onshould come before the color set.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the device behave in either scenario? If I do the color set followed by on does it come on with the color that was set just prior? I imagine if I turn on and then do color set the bulb comes on at the last color and then changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is correct @dkirker. That is why I put "on" command after setting the color temperature, because then the bulb immediately turns on the light at the selected color temperature, without waiting for a change from the previous value.
The same logic guided me here: #11479. If I put "on" command before setting the color, first the bulb would turn on with the last color and then changes to which I choose. I can imagine that this situation would be reported as a bug. But when I put "on" command after, the bulb switch to the desired color value right away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greens, you mentioned in Jira ticket that there were problems with zigbee devices in similar cases so if you think that putting "on" command first would cause less problems I can change it. We can simply inform testers that this is how it should work to avoid more serious issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I guess if we don't have any device where it's misbehaving yet this is fine. We can always update it later if we run into one of those devices where it doesn't work.