From 537a3cec816facd01a85466267447f2ddcf7a8ad Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Fri, 24 Feb 2017 21:24:10 +0000 Subject: [PATCH] Automation for #22 - Cuckoo Clock! --- automation/System/CucKoo_Clock.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 automation/System/CucKoo_Clock.yaml diff --git a/automation/System/CucKoo_Clock.yaml b/automation/System/CucKoo_Clock.yaml new file mode 100755 index 00000000..a8a574f8 --- /dev/null +++ b/automation/System/CucKoo_Clock.yaml @@ -0,0 +1,22 @@ +################################### +## cuckoo Clock simulation. +################################### + +- alias: Cuckoo Clock + trigger: + - platform: time + minutes: 59 + seconds: 56 + action: + - service: media_player.volume_set + entity_id: + - media_player.livingroomCC + data: + volume_level: 0.20 + + - service: media_player.play_media + data_template: + entity_id: media_player.LivingRoomCC + media_content_id: > + https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/sounds/cuckoo-clock-{{now().strftime("%I")}}.mp3 + media_content_type: audio/mp4