OK, so I made a calibrated RGB sensor that sends back RGB data. Right now I have it set up as 3 separate sensors in HA. (Is there a way to combine them?)
I am able to read their values just fine and they show up on top of the page. They are 8-bit unsigned values from 0-255, to match the formatting desired by most color data sources.
Now, I want to set a hue light’s color based on these values.
Here is my attempt (I’m not sure how to do a code block
matchlights:
alias: Match Lighting
sequence:
service: light.turn_on
data:
entity_id: light.office
rgb_color: ['{{ sensor.red_sensor.state }}', '{{ sensor.green_sensor.state }}', '{{ sensor.blue_sensor.state }}']
As I expected, it doesn’t really like the formatting, but I’m not sure how it should be formatted. Online examples are of inserting a single data point, not an array of 3 data points.