message:"Garbage reminders snoozed for {{ snooze_label }} from Carlo's phone."
- stop:"Garbage reminder snooze saved."
- condition:trigger
id:garage_open
# Only run on garbage days (Wed/Sun) while the shared snooze is idle.
- condition:time
weekday:
- wed
- sun
- condition:state
entity_id:timer.garbage_reminder_snooze
state:'idle'
# One inside reminder via Chromecasts (speech_engine targets living room)
- service:script.speech_engine
data:
call_garbage_day:1
value1:>-
Reminder:it's garbage day. Please take the cans to the curb before you leave.
- variables:
reminder_delays:[30,60,90]# cumulative delays to hit 30s, 90s, 180s
reminder_message:>-
Reminder:it's garbage day.
{% if now().strftime('%a') == 'Wed' %}
Both recycling and regular garbage go out today.
{% endif %}
Please take the cans to the curb before you leave.
# Make the phone actions available immediately while the first speech runs.
- parallel:
- service:script.notify_engine_two_button
data:
title:"Garbage Day Reminder"
value1:"{{ reminder_message }}"
who:'carlo'
group:'Garbage_Reminders'
level:'active'
title1:"Snooze 30m"
action1:"SNOOZE_GARBAGE_REMINDERS_30M"
icon1:"sfsymbols:clock"
title2:"Snooze 2h"
action2:"SNOOZE_GARBAGE_REMINDERS_2H"
icon2:"sfsymbols:clock.badge.checkmark"
# One inside reminder via Chromecasts (speech_engine targets living room).
- service:script.speech_engine
data:
value1:"{{ reminder_message }}"
- repeat:
for_each:"{{ reminder_delays }}"
@ -46,21 +111,23 @@
- delay:
seconds:"{{ repeat.item }}"
# Skip if the doors closed during the wait or it's no longer garbage day
# Stop if the door closed, the day changed, or Carlo snoozed the alert.
- condition:state
entity_id:group.garage_doors
state:'open'
- condition:template
value_template:>-
{% set day = now().strftime('%a') %}
{{day in ['Wed', 'Sun'] }}
- condition:time
weekday:
- wed
- sun
- condition:state
entity_id:timer.garbage_reminder_snooze
state:'idle'
- 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.