From 3a6f08d36023bef2807e68e590bf83e21d63abdc Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 3 Feb 2021 00:06:25 +0100 Subject: [PATCH] Update Alarm clock start music from 10% and increase music 10% every 30s --- automations/files/automations/alarm-clock.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/automations/files/automations/alarm-clock.yaml b/automations/files/automations/alarm-clock.yaml index d618bc4..c5dcdaa 100644 --- a/automations/files/automations/alarm-clock.yaml +++ b/automations/files/automations/alarm-clock.yaml @@ -28,7 +28,7 @@ - delay: 0:30:00 - service: media_player.volume_set data: - volume_level: 0.6 + volume_level: 0.1 entity_id: media_player.bedroom_speaker - service: media_player.play_media data: @@ -40,7 +40,17 @@ data: device_name: Bedroom speaker uri: 'spotify:playlist:71mXIu6HcdVj3fAMduaHop' - random_song: true + - repeat: + until: + - condition: numeric_state + entity_id: media_player.bedroom_speaker + attribute: volume_level + above: '90' + sequence: + - delay: '30' + - service: media_player.volume_up + entity_id: media_player.bedroom_speaker + mode: single - id: alarm-update-time alias: '[Alarm] Update alarm time'