Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101828

Color values for lights using variables

$
0
0

@haabe wrote:

So… Setting rgb_color using variables in data_template apparently doesn’t work because data_template variables are treated as strings, and rgb_color needs a list of integers.

I’ve seen suggestions to use profiles, which requires me to set up a color scheme in light_profiles.csv - which requires a set of xyz color values, whereas I have not seen any suggestions on how to convert colors to that color system. The ones I have found have not generated any resemblance of the RGB color I put in.

I bet using color_name would work nicely, as they are strings. But unfortunately, CSS3 has only named 147 colors.

So how on earth do we change color values dynamically with variables?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101828

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>