Random Light Colors

This is a very basic blueprint which sets a random color when a light is turned on. Should work with any color light

Click to import
Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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
2 Likes

This is another way.