mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
bedtime announcements
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user