[Example] Radial brightness indicator for dimmable RGB and non-RGB lights #1000
Tobboss
started this conversation in
Share your custom styles, templates and dashboards
Replies: 1 comment 1 reply
|
Hi, thanks for sharing your variant. I made a few adjustments:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Based on the hype of the radial gradient indicator in this reddit post I created a variant for dimmable RGB and non-RGB lights.
It indicates the percental brightness and uses the actual color of the light. For non-RGB lights like my ShellyDimmer2 it uses a fallback color.
This is how I did it in the styling options.
I am absolutely no JS expert. If you know a more elegant way to achieve this I am happy to know. For example accessing the actual button / icon color instead of the entities attributes and hard coded fallback values. Also the border of the gradient seems pixelated. Any idea how to smooth it?
edit: simplifaction of the rgb part
All reactions