Start_date_time templating don't work

Hello, when I save the following automation :

alias: fin evenement google calendar (chauffe eau)
description: ""
trigger:
  - platform: calendar
    event: end
    entity_id: calendar.42ruedesroches_gmail_com
condition: []
action:
  - service: calendar.get_events
    target:
      entity_id:
        - calendar.42ruedesroches_gmail_com
    data:
      start_date_time: "{{ (today_at("01:00:00") + timedelta( days = 1)).strftime('%Y-%m-%d %H:%M:%S')}}"
      duration:
        days: 3
    response_variable: agenda
  - service_template: |
      {% if (agenda['calendar.42ruedesroches_gmail_com'].events | count) > 0 %}
        light.turn_on
      {% else %}
        light.turn_off
      {% endif %}
    entity_id: light.lave_linge_commutateur
mode: single

the start_date_time template disappears. Code after save.

alias: fin evenement google calendar (chauffe eau)
description: ""
trigger:
  - platform: calendar
    event: end
    entity_id: calendar.42ruedesroches_gmail_com
condition: []
action:
  - service: calendar.get_events
    target:
      entity_id:
        - calendar.42ruedesroches_gmail_com
    data:
      start_date_time: ""
      duration:
        days: 3
    response_variable: agenda
  - service_template: |
      {% if (agenda['calendar.42ruedesroches_gmail_com'].events | count) > 0 %}
        light.turn_on
      {% else %}
        light.turn_off
      {% endif %}
    entity_id: light.lave_linge_commutateur
mode: single

templating result : “{{ (today_at(“01:00:00”) + timedelta( days = 1)).strftime(‘%Y-%m-%d %H:%M:%S’)** }}”

2024-03-26 01:00:00

it’s good.

I think I didn’t understand something…

Don’t use double quotes inside the template (in this case around the time) if you are using them outside the template, use single quotes instead.

Also, the strftime() is not needed:

...
    data:
      start_date_time: "{{ today_at('01:00:00') + timedelta(days = 1) }}"
....