how do I get to set the colour of my rgb light as part of an automation
I have the following automation that turns on a rgb light if the TV input changes.
- id: 'xxxxxxxxxxxxxxx'
alias: if TV input changes then turn on light
description: ''
trigger:
- entity_id: sensor.samsung_q8_series_55_media_input_source
from: digitalTv
platform: state
to: HDMI1
condition: []
action:
- device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
domain: light
entity_id: light.xxxxxxxxxxxxxxxxxx
flash: short
type: turn_on
mode: single
what I would like to do is have it set to a certain color but when i have tried adding the color_name or rgb_color commands the automation wont load. if i try the color_name or rgb_color commands in the developer tools section they work fine.
Any help would be appreciated