dave-code-ruiz / elkbledom

Home Assistant custom component for LED STRIP NAME ELK BLEDOM
MIT License
77 stars 16 forks source link

Set Color #48

Closed namornoditz closed 10 months ago

namornoditz commented 10 months ago

Thx for your integration. Works fine. Is there a option to set the color via scripts using yaml code? I've tried the rgb_color options from the light domain, but this does not work for me.

br

namornoditz commented 10 months ago

It works now. Maybe you wanna add such an example to the info.

type: button
name: Red
show_name: true
tap_action:
  action: call-service
  service: light.turn_on
  target:
    entity_id: light.test
  data:
    rgb_color:
      - 255
      - 0
      - 0
    brightness: 255