Trigger Condition: Last used event / frequency

Hello Friends,

I hope someone can help me out, my google-fu left me :frowning:
I have realised a doorbell via a Raspberry GPIO and after some issues with the python script that does the ringing everythings working fine - but (of course, but):

I would like HASS to not even trigger the event until X seconds after the last time it was triggered.

Or, more generic: I’m looking for something like:

`conditions:

       state: trigger.last_used
       seconds: 30

`

I could create a workaround with a template and a script, I think - but this seems like an overkill :slight_smile:

Any hints are very welcome!

Thanks,
bahmi

Try the last change attribute, here is a post on it

1 Like

awesome, thanks a lot! This is exactly what I was looking for!