Files
Home-Assistant/automations/04_kids_and_announcements/04b_declan_automations.yaml
T

102 lines
2.5 KiB
YAML

###################################################################
################ DECLAN'S ALARMS AND ANNOUNCEMENTS ################
###################################################################
- id: '1788133654306'
alias: Declan - Non-school day afternoon medication reminder
description: Remind Declan to take his medicine at 2 PM on non-school days.
triggers:
- trigger: time
at: '14:00:00'
conditions:
- condition: state
entity_id: binary_sensor.blackhawk_school_day
state: 'off'
actions:
- action: script.family_announcement
continue_on_error: true
data:
message: Declan, this is your reminder to take your afternoon medicine.
targets:
- media_player.living_room
- media_player.declan_s_room
- action: script.notify_events_alerts
data:
title: Declan medication reminder
message: Declan's afternoon medicine reminder.
mode: single
- id: '1788133654301'
alias: Declan - School Prep Announcement
description: ''
triggers:
- at: 07:20:00
trigger: time
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: binary_sensor.blackhawk_school_day
state: 'on'
- condition: state
entity_id: binary_sensor.day_camp_today
state: 'off'
actions:
- target:
entity_id: media_player.hisense_g204x_cd41
action: media_player.media_pause
data: {}
continue_on_error: true
- data:
message: Declan this is your reminder to pack your snack and fill your water bottle.
targets:
- media_player.living_room
- media_player.declan_s_room
- media_player.kitchen
action: script.family_announcement
mode: single
- id: '1788133654302'
alias: Declan - Time for School Announcement
description: ''
triggers:
- at: 07:38:00
trigger: time
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: binary_sensor.blackhawk_school_day
state: 'on'
- condition: state
entity_id: binary_sensor.day_camp_today
state: 'off'
actions:
- target:
entity_id: media_player.hisense_g204x_cd41
action: media_player.turn_off
data: {}
continue_on_error: true
- data:
message: Time for school! Last call to get your water bottle, snack, and put on your shoes. Have a great day and never trust a fart!
targets:
- media_player.living_room
- media_player.declan_s_room
- media_player.kitchen
action: script.family_announcement
mode: single