Hello. I currently have WLED setup to read my calendar and update the preset based on the title of the calendar event. However, changing the preset turns WLED on vs leaving it in the current state. My calendar events currently run at 4am, well before it would turn on automatically at sundown. Is there a way to always set it as off or to read the current on/off setting of WLED and use that?
My automation is below. I also provided one of the presets which normally is called at 4am and does not include {“on”: true}".
Thanks!
alias: Change DigiQuad Preset
triggers:
- trigger: calendar
entity_id: calendar.wled
event: start
offset: "0:0:0"
actions:
- action: select.select_option
target:
entity_id: select.dig_quad_v3_preset
data:
option: "{{state_attr('calendar.wled', 'message')}}"
{"bri":255,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":190,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[255,224,160],[255,255,255],[0,0,0]],"fx":0,"sx":128,"ix":128,"pal":3,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}