Automate changing of LED colors... (h801

Looking for a way to add actions to my LED light strip.

First, I cannot remember what addin/plugin I installed to control my Tasmota LED device. But it looks like this in lovelace

In lovelace I can create buttons to change the color of the lights.

When I create automations, the only options available are device on/off, change brightness, and maybe change state. No option to change color.

My card configuration looks like this (not sure if this is helpful)

type: entities
show_header_toggle: false
entities:
  - entity: light.h801_led
  - type: custom:rgb-light-card
    entity: light.h801_led
    colors:
      - rgb_color:
          - 238
          - 0
          - 255
        brightness: 255
        transition: 1
        label: P.H.
      - rgb_color:
          - 238
          - 0
          - 255
        brightness: 150
        transition: 1
        label: P.L.
      - rgb_color:
          - 255
          - 0
          - 0
        brightness: 255
        transition: 1
        label: R.H.
      - rgb_color:
          - 255
          - 0
          - 0
        brightness: 150
        transition: 1
        label: R.L.
state_color: true

Any pointers how I can automate a color change?

action:
  - service: light.turn_on
    target: 
      entity_id: light.h801_led
    data:
      color_name: red

or

    data:
      rgb_color: [255,0,0]

or any of the other color attributes listed here: https://www.home-assistant.io/integrations/light/#service-lightturn_on

2 Likes

Thanks!

After creating that, and editing the automation in the UI I noticed that selecting “Call Service” under the actions unveils the options for color and brightness. Thanks for the help!