This is a very basic blueprint which sets a random color when a light is turned on. Should work with any color light
blueprint:
name: Random Light Colors
description: Sets a random color when a light is turned on
author: awoo
domain: automation
input:
devices:
name: Included Lights
selector:
entity:
domain: light
multiple: true
trigger:
platform: state
entity_id: !input devices
from: "off"
to: "on"
action:
- service: light.turn_on
data:
hs_color: "[ {{ range(10,300) | random }}, 100 ]"
target:
entity_id: "{{ trigger.entity_id }}"
mode: parallel
max: 100
max_exceeded: silent