States shows input_datetime.lastupdated is “2024-07-06 19:22:03”
I want to trigger an automation when 10 minutes has passed since the input_datetime helper was updated? I was thinking I could create a template sensor in template.yaml file but struggling with the syntax for that – other suggestions?
trigger:
- platform: state
entity_id: input_datetime.lastupdated
to: ~ # == NULL, which triggers on state changes, not attribute changes.
for:
minutes: 10
thanks for the quick response. that looks more simple than I was thinking. give me context as to where this code goes and how I use that to trigger an automation if 10 minutes has passed since this was updated “input_datetime.lastupdated”