reminder_delays:[30,60,90]# cumulative delays to hit 30s, 90s, 180s
- repeat:
for_each:"{{ reminder_delays }}"
sequence:
- delay:
seconds:"{{ repeat.item }}"
# Skip if the doors closed during the wait or it's no longer garbage day
- condition:state
entity_id:group.garage_doors
state:'open'
- condition:template
value_template:>-
{% set day = now().strftime('%a') %}
{{day in ['Wed', 'Sun'] }}
- service:notify.alexa_media_garage
data:
message:>-
{% set day = now().strftime('%a') %}
Reminder:it's garbage day. {% if day == 'Wed' %}Both recycling and regular garbage go out today. {% endif %}Please take the cans to the curb before you leave.