I’m a little confused with the newer automation interface and its auto-generated code.
I create a lighting automation using the interface in Lovelace…

I want to specify the color and transition time, so I go into the “Edit YAML” option.

The problem is that no matter how I enter the variables here I get an error. Ive tried…
rgb_color:
- 20
- 85
- 255
and…
rgb_color: [20, 85, 255]
So what is the proper adjustments to the YAML to get this variable to work?
Thanks a lot,
Steven
As per the documentation device triggers/actions aren’t designed to be edited in yaml, if you need to use options that aren’t available for devices you’ll need to use a different action type, in this case the light.turn_on service.
1 Like
Jeez,
Thanks! I had all this set up before, but was running in a jail environment… I decided to make the switch to a Raspberry Pi and have to rebuild from scratch. So much is different from the initial setup I did long ago.
Thanks for the nudge… It’s working now.
1 Like