@skalavala hi!
trying your animated lights on Hue, I wonder why this has another order than the ‘regular’ order for entity_id and data?
https://github.com/skalavala/smarthome/blob/master/packages/lights.yaml#L453
action:
service: light.turn_on
data:
entity_id: light.master_bedroom
transition: 5
brightness: 150
data_template:
rgb_color: ['{{ "{0:d}".format(range(0, 255)|random) }}',
'{{ "{0:d}".format(range(0, 255)|random) }}',
'{{ "{0:d}".format(range(0, 255)|random) }}']
while usually I see this:
action:
service: light.turn_on
entity_id: light.master_bedroom
data_template:
transition: 5
brightness: 150
rgb_color: ['{{ "{0:d}".format(range(0, 255)|random) }}',
'{{ "{0:d}".format(range(0, 255)|random) }}',
'{{ "{0:d}".format(range(0, 255)|random) }}']
Ive tried that, but it won’t do anything…
second: is this a special notation for the rgb_color template? elsewhere I use it like this:
rgb_color: ['{{ (range(0, 255)|random) }}',
'{{ (range(0, 255)|random) }}',
'{{ (range(0, 255)|random) }}']
just trying to understand the format, maybe you can explain what this does please?
thx,
Marius