Added support for color temperature tile feature #16515
Merged
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.
Proposed change
The color temperature tile feature has been added for lights that support CCT control.
![chrome_Ysk1iY4zfE](https://private-user-images.githubusercontent.com/60204407/237824671-939229e3-a4db-429d-838d-f2e3de97fbc0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDE2OTIsIm5iZiI6MTczOTIwMTM5MiwicGF0aCI6Ii82MDIwNDQwNy8yMzc4MjQ2NzEtOTM5MjI5ZTMtYTRkYi00MjlkLTgzOGQtZjJlM2RlOTdmYmMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mjk1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjMzk3ZjExYmEzYzVhNjllYWY1MmY3N2QyNTcyZDIxYWIxM2I2ZDFhMDE5ODRhMDBmYzc0OGY3MzE0NjQwMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-dfLorBi9xcQ0XDiFSF3WJmYtezdgS7PFf0yQ7NqaVw)
![chrome_8Xg8kTDezP](https://private-user-images.githubusercontent.com/60204407/237824674-a2a387f2-a244-4976-b18c-312d107c6b39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDE2OTIsIm5iZiI6MTczOTIwMTM5MiwicGF0aCI6Ii82MDIwNDQwNy8yMzc4MjQ2NzQtYTJhMzg3ZjItYTI0NC00OTc2LWIxOGMtMzEyZDEwN2M2YjM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mjk1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkZDc0ODY3NWNkMWY1OGM5YmY2YzFhMzBmMDE0ZDNiMzYwMDZlODBlMDEyZjM1ZTJjNDU5YTUxM2FmOGUzOTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.at_XkueK87MDdK1SbAicVJKLi_B2wlwe7WD5rUZClr0)
Type of change
Example configuration
Additional information
Something to discuss about the current features implementation is the inability to see the current value for the feature. With brightness being the only stock feature right now this is not a problem, because the brightness percentage is listed under the entity name. We could add dynamic text based on the features enabled for the card? But if a lot of features are added I think it would be verbose. An idea I had was to flash for a few seconds the value set in the feature in place of the current brightness percentage for lights. For example this is what the card would look like after setting the picker for the color temperature:
![chrome_f2HtGL4b9d](https://private-user-images.githubusercontent.com/60204407/237825621-03ceb600-fa11-4944-998c-c5a51bb3b6a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDE2OTIsIm5iZiI6MTczOTIwMTM5MiwicGF0aCI6Ii82MDIwNDQwNy8yMzc4MjU2MjEtMDNjZWI2MDAtZmExMS00OTQ0LTk5OGMtYzVhNTFiYjNiNmEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE1Mjk1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0NDE1M2I2OGNhZDYxYjhhNzI4ZTk3ZTFiZGNlZDkwYjAwNTNiNWFmNzBiOTk4MzAyYWE3NzRlZTM3MmIwNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Ei302xTeDAyM86nO02tAsB9fMI4099kEPs5wNRHeVY0)
Thoughts?
Checklist
If user exposed functionality or configuration variables are added/changed: