I have a string of lights using WLED.
I have been able to configure a random Christmas theme of patterns as an HA automation.
The trouble I am having is that I want the lights to start at 4 pm and randomize every 5 minutes.
It is the 5 minute “trigger” I can not figure out.
This is what I would normally use.
trigger:
platform: time_pattern
minutes: "5"
When this is added to the rest of my code (see below) it gives me errors.
How would I proprly add this?
####################################################
# CHRISTMAS LIGHTS ON 08Dec2021 #
####################################################
- id: "2aa1433d-3104-4a59-aadb-9025112ad466"
alias: "Lights - Christmas Lights ON"
description: Christmas Lights ON
trigger:
- platform: time
at: "16:00:00"
condition:
condition: state
entity_id: light.wled_holiday_4
state: "on"
action:
- service: light.turn_on
data:
speed: 173
intensity: 255
data_template:
entity_id: light.wled_holiday_4
effect: "{{ states('input_select.led_effects') }}"
- service: input_select.select_next
entity_id: input_select.led_effects
####################################################
# END OF CONFIGURATION FILE #
####################################################
This is my input select file
input_select:
led_effects:
options:
- Colorloop
- Dancing Shadows
- Glitter
- Colortwinkles
- Pride 2015
- Washing Machine
Any help is greatly appreciated.