WLED: Change Preset without Turning On

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}]}
1 Like

If this is the only place you apply the preset you could set the brightness in your preset to 0 instead of 255.

Then when turning on your lights at sunrise set the brightness to 255.

I also use WLED Native from my phone to change the presets - so if I set all my presets (minus sunset) to “bri”:0 then I’d have to manually change the brightness each time I make a change.

Can Home Assistant query the current WLED power state, set the preset, and then reset the power state to the previous query value?