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

Setting RGB light color based on sensor value

$
0
0

@vmazmaz wrote:

Hello,

I’m currently trying to create a custom color temperature slider for WWA LED strip (cold white, warm white and amber instead of RGB). For that I have basically created template sensors for the RGB channels based on the input of a color temperature slider.
I would like to change the color of my lights when I change the slider position. I have created an automation but this results in a config error:

  alias: CT WWA
  trigger:
  - entity_id: input_number.ct_slider
    platform: state
  condition: []
  action:
  - data:
      rgb_color: 
        - {{ states('sensor.red') | int }}
        - {{ states('sensor.green') | int }}
        - {{ states('sensor.blue') | int }}
    entity_id: light.wled2
    service: light.turn_on

Thank you !

Posts: 10

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles