How to reset a input.datetime as a service-call

Hello

I am trying to create a maintenance schedule in home assistant. I have realised this via input.datetime.

I would now like to reset this to the current date using a tap action. Unfortunately, I cannot do this.

I always get the error message:
could not parse date for dictionary value @ data[#date].

what am I doing wrong?

Here is my config:

tap_action:
  action: call-service
  service: input_datetime.set_datetime
  service_data:
    entity_id: input_datetime.clean_break_group
    date: '{{ now().strftime(' '%Y-%m-%d' ') }}'

Using templates in Lovelace. Pretty much only the markdown card supports that.

Call a script that resets your helper or use this custom card and JavaScript templates:

thanks. So nothing wrong but not implemented :slight_smile:
I will use a script then.

Do you have a solution for your Problem?

I want to add a day to my datetime Helper, by using service.

Its working well in automations, but not in the UI

  - type: tile
    entity: sensor.datetime_next_bobby_cleaning
    show_entity_picture: false
    vertical: false
    name: nächste Reinigung (Klick zum Überspringen)
    tap_action:
      action: call-service
      service: input_datetime.set_datetime
      data:
        date: >-
          {{ (as_datetime(states('input_datetime.datum_nachste_bobby_reinigung')) +
          timedelta(days=1)).date() }}
      target:
        entity_id: input_datetime.datum_nachste_bobby_reinigung