Hello, I’m trying to get my WLED preset to be set based on the description in a calendar event.
My WLED D1mini is turned on and off daily, when it is turned on, I want an automation to check the calendar, then set the WLED preset to the same name in the calendar description.
I added a step to hardcode an option to Poppy - this works. I can also see with a template that the description from the calendar is being extracted, so I’m really confused why it doesn’t work.
Is it something to do with the datatype? YAML won’t let me enter the line without quotes but then is that parsing a string to WLED? The other option Poppy is not a string?
Thankyou - so do i define a template that passes the calendar text to wled, then run the template in the automation?
I’ve never used selectors before, the docs do not come across that intuitive.
Found this and was very hopeful it was what I needed, in mine, I want to start my lights 45 mins before sunset, to prevent other automation from taking over. When I copied " line for there option update, HA stopped giving me an error so I was very optimistic. What I found this morning was an error telling me my choice was not one of my presets.
As stated in Post #2… Device actions were designed for basic uses and inexperienced users, they do not support “advanced” features like templating.
Use the select.select_option action as shown in the post marked “Solution” with your calendar’s ID in the template and select.dig_quad_v3_preset as the targeted entity.
That is not exactly what your automation is doing… As currently configured, the automation is triggered at the start of the calendar event. If the light is off at that time and it is between midnight and 45 minutes before sunset, the actions will be executed to update the Select entity and send the notification.
If you actually want to trigger 45 minutes before sunset, use a Sun trigger.
I’m not sure what you are asking… it might be best to start a new thread describing what you are trying to accomplish. Make sure to include what you have already tried and detail any complicating factors like the “other automation” you mentioned earlier.
ok I apologize for this, I will open a new ticket after I wrap my head around this a little, I will explain what I’m hoping to do and then can take direction from there.