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

Light's that support colours will display as a switch and not a slider #91

Open
AAllport opened this issue Aug 14, 2022 · 2 comments
Open

Comments

@AAllport
Copy link

AAllport commented Aug 14, 2022

Due to the line here:

${(stateObj.attributes.supported_color_modes?.includes(
"brightness"
) &&

When a light supports RGB or XY, it renders us a switch, and not a slider.
Whilst this is overridable, it would be great for it to be automatically picked up.

I'm not sure whether it would be best to list all of the supported light modes that are likely to have brightness or add a check for attrs.brightness
Unfortunately, it looks like entities lose their brightness attr when turned off.

@Twinsen68
Copy link

@AAllport How to fix it ? I have this problem. I only have a switch and not the slider.
brgds

@AAllport
Copy link
Author

It's possible to pass a displayType of slider which will have the same effect

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