Skip to content

Instantly share code, notes, and snippets.

@tteck
Last active December 6, 2020 23:56
Show Gist options
  • Save tteck/380b28c22826d513aefde52240e3c921 to your computer and use it in GitHub Desktop.
Save tteck/380b28c22826d513aefde52240e3c921 to your computer and use it in GitHub Desktop.
Create a full snapshot at a given time every day. With Alexa support. (Modified vori blueprint)
blueprint:
name: Automated Snapshot w/Alexa
description: Create a full snapshot at a given time every day.
domain: automation
input:
trigger_time:
name: Snapshot creation time
selector:
time:
play_notification:
name: Alexa notify backup
description: Plays a notification on a Alexa device if enabled.
selector:
boolean:
default: false
notify_device:
name: Alexa Device to notify
selector:
entity:
domain: media_player
default: ""
message:
name: The message that will be played
mode: single
max_exceeded: silent
variables:
play_notification: !input play_notification
message: !input message
trigger:
- platform: time
at: !input trigger_time
action:
- service: hassio.snapshot_full
data:
name: "Auto backup {{ now().strftime('%-I:%M %p on %m/%d/%y') }} "
- choose:
- conditions: "{{ play_notification }}"
sequence:
- service: notify.alexa_media
data:
message: "{{ message }}"
data:
type: tts
target:
- !input notify_device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment