Assigning current time to a time helper

I am trying to get time current time stored when an event takes place

alias: “Garage Door: time opened”
description: “”
trigger:

  • platform: state
    entity_id:
    • binary_sensor.garage_door_state
      condition:
      action:
  • service: input_datetime.set_datetime
    data:
    time: “{{ now().timestamp() }}”
    target:
    entity_id: input_datetime.time_door_opened
    mode: single

But all that is ever in the helper is

has_date: false
has_time: true
editable: true
hour: 0
minute: 0
second: 0
timestamp: 0
icon: mdi:timer-outline
friendly_name: Time door opened

It doesn’t seem to ever update the helper.

Straight from the examples:

- service: input_datetime.set_datetime
  target:
    entity_id: input_datetime.XXX
  data:
    timestamp: "{{ now().timestamp() }}"

Note the timestamp key…

1 Like

Awesome, thanks; amazing how I read, and re-read but just did not see the word “stamp” :wink: