bedtime announcements

This commit is contained in:
CeeWeasel
2024-04-30 13:01:01 -04:00
parent 2be72e5764
commit 4bc7f3a60d
3 changed files with 31 additions and 22 deletions
@@ -81,11 +81,11 @@ script:
data:
volume_level: "{{volume}}"
- alias: "Wait another bit for the volume to be set"
delay:
hours: 0
minutes: 0
seconds: 2
# - alias: "Wait another bit for the volume to be set"
# delay:
# hours: 0
# minutes: 0
# seconds: 2
- alias: "Play the announcement"
service: media_player.play_media
@@ -111,7 +111,8 @@ script:
- alias: Wait for the specified media_player(s) to become idle
wait_for_trigger:
- platform: template
value_template: "{{ is_state(media_player, 'idle') or is_state(media_player, 'off')}}"
value_template: "{{ is_state(media_player, 'idle') or is_state(media_player, 'off') or is_state(media_player, 'unavailable')}}"
timeout: "00:00:30"
- alias: "Give a second of dead air after the announcement"
delay: