Rain sensor - Automation for notification

Dear community,

I have a capacitive rain sensor.

I’d like to receive a notification on my phone when it rains at home (this already works).

However, it’s annoying that I get a notification every few minutes when it rains.
How can I configure it so that a status change is only checked and a notification sent every 15 minutes?

alias: Notification-Regen_zu_Hause
description: ""
triggers:
  - trigger: state
    entity_id:
      - switch.nq13_regensensor
    from:
      - "off"
    to:
      - "on"
    for:
      hours: 0
      minutes: 3
      seconds: 0
conditions: []
actions:
  - action: notify.mobile_app_zzz_iphone
    metadata: {}
    data:
      message: Es regnet zu Hause.
  - action: notify.mobile_app_iphone_von_xxx
    metadata: {}
    data:
      message: Es regnet zu Hause.
  - action: notify.mobile_app_iphone_von_yyy
    metadata: {}
    data:
      message: Es regnet zu Hause.
mode: single

I’ve looked in the automations, but haven’t found a suitable function block.

Thank you in advance.

You can throttle an automation using a Template condition that checks the last time the automation ran it’s action sequence.

condition: template
value_template: |
  {% set last_run = this.attributes.last_triggered|default(as_datetime(0),1) %}
  {{ now() >=  last_run + timedelta(minutes = 15) }}

or, as the mode is already set to single just add a delay of 15 minutes as the last action.