Presets using JSON API for exact time or day of year trigger?

Hey guys, I have spent the last hour reading and going through docs. I am getting a lot of misinformation from just the version differences with Macros and Playlists/Presets.

I may be blind and missing it, but is there any way to store a “schedule” using the presets to say turn on the lights on Nov 12th at 2:00pm, and have that stored on the device?

I realize that it appears as though the design is do more complex controls like through another system like HA or even Alexa, but I am looking for a solution where through the API you can store schedules in memory? Or is that not possible currently?

This is of course not using the UI at all. Just using the API (pref Json).

Am I missing something?

I have gone over the different API docs for HTTP, JSON and MQTT, and I have read on here, through the wiki and reddit as much as I can but I can’t seem to find any specific JSON commands where I can set times and have them stored on the device memory VS a third party control.

See Time & Macros page in UI…

image

Oh, via json… Oops.

Set a date / time preset up manually using WLED UI. Capture json configuration that includes the new date/time preset. Reverse it.

Once you figure it out, please feel free and update the open source documentation to match the approach and results you figured out so others will not be as confused as you.

Hello, I wanted to piggy back off of this thread and see if @badjesus or anyone else was able to come up with a solution for accessing Scheduling configuration through JSON API?

My ideal scenario would be to be able to do the following through API:

  • Read all current “Time-Controlled Presets” setup
  • Add new “Time-Controlled Preset” schedule
  • Remove existing “Time-Controlled Preset”

One way I though this could be accomplished is to create a custom UserMod, but before doing so I wanted to ask if anyone has a better suggestion.