diff --git a/include/scripts/doorbell.yaml b/include/scripts/doorbell.yaml new file mode 100644 index 0000000..5267195 --- /dev/null +++ b/include/scripts/doorbell.yaml @@ -0,0 +1,120 @@ +# data: +# volumennat (fx 0.5 om natten og 0.8 om dagen) +# volumendag (fx 0.5 om natten og 0.8 om dagen) +# lydfil (fx doorbell-shortened-100308.mp3) +# lampe (fx light.pendle1 og light.raket +# tekst (Det ringer på bagdøren) + +doorbell: + alias: Dørklokke + sequence: + - service: notify.mobile_app_clausiphone + data: + message: '{{ tekst }}' + - service: notify.mobile_app_annes_iphone_xs + data: + message: '{{ tekst }}' + - choose: + - conditions: + - condition: time + after: '20:00:00' + before: 06:00:00 + weekday: + - mon + - tue + - wed + - thu + - fri + - sat + - sun + sequence: + - service: media_player.volume_set + data: + volume_level: "{{ volumennat }}" + target: + entity_id: media_player.lille_badevaerelse + - service: media_player.play_media + target: + entity_id: media_player.lille_badevaerelse + data: + media_content_id: media-source://media_source/local/doorbell-shortened-100308.mp3 + media_content_type: audio/mpeg + metadata: + title: doorbell-shortened-100308.mp3 + thumbnail: + media_class: music + children_media_class: + navigateIds: + - {} + - media_content_type: app + media_content_id: media-source://media_source + - service: scene.create + data: + scene_id: before + snapshot_entities: + - light.pendle1 + - service: light.turn_on + data: + entity_id: light.pendle1 + brightness: 255 + rgb_color: [255, 0, 0] + flash: long + - delay: 2 + - service: scene.turn_on + entity_id: scene.before + + default: + - service: media_player.volume_set + data: + volume_level: "{{ volumendag }}" + target: + entity_id: media_player.lille_badevaerelse + - service: media_player.play_media + target: + entity_id: media_player.lille_badevaerelse + data: + media_content_id: media-source://media_source/local/doorbell.mp3 + media_content_type: audio/mpeg + metadata: + title: doorbell.mp3 + thumbnail: + media_class: music + children_media_class: + navigateIds: + - {} + - media_content_type: app + media_content_id: media-source://media_source + + - service: media_player.play_media + target: + entity_id: media_player.alrum + data: + media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A + media_content_type: provider + metadata: + title: 'der er nogen der ringer på + + ' + thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png + media_class: app + children_media_class: + navigateIds: + - {} + - media_content_type: app + media_content_id: media-source://tts + - media_content_type: provider + media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A + - service: scene.create + data: + scene_id: before + snapshot_entities: + - light.pendle1 + - service: light.turn_on + data: + entity_id: light.pendle1 + brightness: 255 + rgb_color: [255, 0, 0] + flash: long + - delay: 2 + - service: scene.turn_on + entity_id: scene.before diff --git a/include/scripts/guest_mode.yaml b/include/scripts/guest_mode.yaml new file mode 100644 index 0000000..1417e69 --- /dev/null +++ b/include/scripts/guest_mode.yaml @@ -0,0 +1,12 @@ +guest_mode_on: + sequence: + - service: automation.turn_off + entity_id: + - group.guest_automations_off + +guest_mode_off: + sequence: + - service: automation.turn_on + entity_id: + - group.guest_automations_off + diff --git a/include/scripts/raketloop.yaml b/include/scripts/raketloop.yaml new file mode 100644 index 0000000..cacee93 --- /dev/null +++ b/include/scripts/raketloop.yaml @@ -0,0 +1,20 @@ +raketloop: + alias: Color Loop + use_blueprint: + path: mdolnik/color_loop.yaml + input: + light: light.raket + color_1: + - 255 + - 38 + - 0 + color_2: + - 4 + - 51 + - 255 + color_3: + - 255 + - 251 + - 0 + mode: single + icon: mdi:lightbulb-on-90 diff --git a/include/scripts/sunrise.yaml b/include/scripts/sunrise.yaml new file mode 100644 index 0000000..b5b3caf --- /dev/null +++ b/include/scripts/sunrise.yaml @@ -0,0 +1,32 @@ +sunrise: + sequence: + - service: light.turn_on + data: + entity_id: light.sov_midt + xy_color: [0.67,0.39] + brightness: 1 + - delay: + seconds: 1 + - service: light.turn_on + data: + entity_id: light.sov_midt + xy_color: [0.65,0.41] + brightness: 85 + transition: 600 + - delay: + seconds: 600 + - service: light.turn_on + data: + entity_id: light.sov_midt + xy_color: [0.60,0.40] + brightness: 170 + transition: 600 + - delay: + seconds: 600 + - service: light.turn_on + data: + entity_id: light.sov_midt + xy_color: [0.48,0.40] + brightness: 255 + transition: 600 + diff --git a/include/scripts/tts_sonos.yaml b/include/scripts/tts_sonos.yaml new file mode 100644 index 0000000..552ad67 --- /dev/null +++ b/include/scripts/tts_sonos.yaml @@ -0,0 +1,8 @@ +text_to_speech_on_sonos: + alias: Text-to-Speech on Sonos + use_blueprint: + path: Talvish/sonos_say.yaml + input: + tts_language: da + icon: mdi:account-voice + mode: parallel