Hey,
I’d like to do a little “disco”-light.
In my automation.yaml I defined the following:
- alias: Random Light Color
trigger:
platform: time
minutes: '/1'
seconds: 00
condition:
condition: state
entity_id: input_boolean.disco
state: 'on'
action:
- service: light.turn_on
data:
entity_id: light.hyperionkitchen
rgb_color: [states.sensor.random_sensor,states.sensor.random_sensor,states.sensor.random_sensor]
And in the configuration.yaml:
input_boolean:
disco:
name: Disco Mode
initial: off
The automation gets triggered, but nothing happens. If I change the color, for example to a fix value of:
rgb_color: [255,0,0]
it works.
The entity_id of the random sensor as seen in dev-state is:
sensor.random_sensor
Can anybody explain why this doesn’t work?