Add condition - automation wasn't triggered for x minutes?

I’d like to add a condition to prevent automation run over and over again on a specific time frame.
Something like - if this automation wasn’t triggered for x time.
is this possible?

My current automation:

automation:
  alias: Notify me when I arrive home
  trigger:
    platform: state
    entity_id: device_tracker.nexus
    from: 'not_home'
    to: 'home'
  condition:
    condition: time
    after: '16:00:00'
    before: '22:00:00'
  action:
    - service: tts.google_say
      data:
        message: 'Welcome Home'

Create a input_boolean you use as a trigger that it was already run, and then reset it at midnight or whenever

2 Likes

Yep. Input booleans are wonderful things. I’m using one or two of them for just that purpose.

1 Like