Insert date into date time helper

I have an automation that when I scan an NFC tag, it updates a date time helper with today’s date, and resets the day counter for that automation. I have this set in one automation with 7 options. Options 1-5 all work just fine. Options 6 and 7 throw the following error when the tag is scanned:

I am obviously missing something easy. I’ve confirmed the date/time helper is the same as all the others and is set to Date only.
Here is the code:

alias: Maintenance_Tag_Scans
description: ""
trigger:
  - platform: tag
    tag_id: 09d00331-e9ca-4f6a-afa1-8debe1acddd0
    id: AC1Filter_Change
  - platform: tag
    tag_id: 5739887c-43e6-4dcf-81c7-7a36ee5920ab
    id: AC2Filter_Change
  - platform: tag
    tag_id: cff947fd-7c1e-48a9-a135-ec6c17ce4d5f
    id: HwH_Filter_Clean
  - platform: tag
    tag_id: d7a2ef6f-1b77-4bb7-91ba-4d325eb4929c
    id: HwH_Flush
  - platform: tag
    tag_id: e3ceb364-efc4-4b85-a799-f0a79d089ed7
    id: Fresh_Air_Filter_Change
  - platform: tag
    tag_id: 9ac3b3a0-da62-4fee-a6a8-b46df226f937
    id: Washing_Machine_Clean
  - platform: tag
    tag_id: 39e47df6-f843-4f6f-87fe-ebda6cb4031b
    id: Dishwasher_Clean
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - AC1Filter_Change
        sequence:
          - service: input_datetime.set_datetime
            data:
              datetime: "{{ now() }}"
            target:
              entity_id: input_datetime.ac1_filter_change_date
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_ac1_filter_days
      - conditions:
          - condition: trigger
            id:
              - AC2Filter_Change
        sequence:
          - service: input_datetime.set_datetime
            data:
              datetime: "{{ now() }}"
            target:
              entity_id: input_datetime.ac2_filter_change_date
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_ac2_filter_days
      - conditions:
          - condition: trigger
            id:
              - HwH_Filter_Clean
        sequence:
          - service: input_datetime.set_datetime
            data:
              datetime: "{{ now() }}"
            target:
              entity_id: input_datetime.maint_hwh_filter_clean
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_hwh_filter_days
      - conditions:
          - condition: trigger
            id:
              - HwH_Flush
        sequence:
          - service: input_datetime.set_datetime
            data:
              datetime: "{{ now() }}"
            target:
              entity_id: input_datetime.maint_hwh_flush
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_hwh_flush_days
      - conditions:
          - condition: trigger
            id:
              - Fresh_Air_Filter_Change
        sequence:
          - service: input_datetime.set_datetime
            data:
              datetime: "{{ now() }}"
            target:
              entity_id: input_datetime.fresh_air_intake_filter_change_date
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_fresh_air_filter_days
      - conditions:
          - condition: trigger
            id:
              - Washing_Machine_Clean
        sequence:
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_washer_drum_clean_days
          - service: input_datetime.set_datetime
            metadata: {}
            data:
              date: "{{ now() }}"
      - conditions:
          - condition: trigger
            id:
              - Dishwasher_Clean
        sequence:
          - service: input_datetime.set_datetime
            data:
              date: "{{ now() }}"
            target:
              entity_id: input_datetime.maint_dishwasher_clean
          - service: input_number.set_value
            metadata: {}
            data:
              value: 0
            target:
              entity_id: input_number.maint_dishwasher_clean_days
mode: single

The ones you say are working use the
datetime: key. The ones that cause the error use date:

1 Like

That was the issue. Thanks for the help!

No problem. If you mark my reply as the solution it will put a check on the topic and make it easier for others to search.