I’m trying to build a little system that would create an event in the calendar, however I can’t seem to parse date correctly. Can someone spot where the issue lies??
So I had both helpers to contain only date. I’ve updated them to contain date and time now and your solution works… however… the event get’s created only for one day (start day) or not at all (if duration is longer than 1 day) and there is a duplicate as well. I am starting to think that I should handle this in a script instead. I wonder maybe I should do this as a custom component??? I saw another approach like this to set up sensors fr dates like Today, Tomorrow, day after tomorrow… and it was basically what I need, add a day to the date.
So I played a bit more ad I decided to dump the idea of using end date as apparently it’s super hard to increment date in automations and I switched to start_date plus in: days: number, but I am getting strange error even though values are populated:
Error: must contain at most one of start_date, start_date_time, in.
Result:
params:
domain: calendar
service: create_event
service_data:
start_date: '2025-03-27'
in:
days: 3
summary: Aupair - Time Off
entity_id:
- calendar.olamike
- calendar.gezin
target:
entity_id:
- calendar.olamike
- calendar.gezin
running_script: false
ad here’s the updated automation script (i know the end_date is till there, one battle at a time!! )