Is this done correctly? When I manually run the actions the automation runs. So, I feel like the script is written correctly but it just doesn’t work automatically.
automation usa_colors:
- alias: "WLED USA Fireworks"
trigger:
platform: state
entity_id: calendar.wled
to: "on"
condition:
- condition: state
entity_id: calendar.wled
state: "WLED USA Fireworks"
action:
- service: rest_command.wled_api
data:
url: "http://ip/win&T=1&FX=90&SX=255&IX=255&FP=5&CL=HFF0000&C2=HFFFFFF&C3=H0000ff"
automation nov_colors:
- alias: "WLED Nov"
trigger:
platform: state
entity_id: calendar.wled
to: "on"
condition:
- condition: state
entity_id: calendar.wled
state: "WLED Nov"
action:
- service: rest_command.wled_api
data:
url: "http://ip/win&T=1&FX=65&FP=39"
automation dec_colors:
- alias: "WLED Xmas"
trigger:
platform: state
entity_id: calendar.wled
to: "on"
condition:
- condition: state
entity_id: calendar.wled
state: "WLED Xmas"
action:
- service: rest_command.wled_api
data:
url: "http://ip/win&T=1&PL=1"
rest_command:
wled_api:
url: "{{ url }}"
method: post
The event titles on the calendar are the state
or alias
values