Created
November 30, 2021 07:57
-
-
Save rrooding/ac20c6eb569f32dc01830bbc20074f7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Automated Daily Snapshot | |
description: Create a full snapshot backup at a given time every day. | |
domain: automation | |
input: | |
trigger_time: | |
name: Snapshot creation time | |
description: The snapshot will be created at this time, every day | |
selector: | |
time: | |
send_notification: | |
name: Send notification | |
description: Sends a notification to a device if enabled | |
selector: | |
boolean: | |
default: false | |
notify_device: | |
name: Device to notify | |
description: Device needs to run the official Home Assistant app to receive notifications | |
selector: | |
device: | |
integration: mobile_app | |
default: "" | |
mode: single | |
max_exceeded: silent | |
variables: | |
backup_filename: "Automated backup {{ now().strftime('%F') }}" | |
send_notification: !input send_notification | |
notify_device: !input notify_device | |
notification_title: Automated Daily Backup | |
notification_message: "Home Assistant full backup created. {{ now().strftime('%F') }}" | |
trigger: | |
- platform: time | |
at: !input trigger_time | |
action: | |
- service: hassio.backup_full | |
data: | |
name: "{{ backup_filename }}" | |
- choose: | |
- conditions: "{{ send_notification }}" | |
sequence: | |
- device_id: !input notify_device | |
domain: mobile_app | |
type: notify | |
title: "{{ notification_title }}" | |
message: "{{ notification_message }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment