Based on Updated Automated Backups
This Blueprint works exactly the asme as Updated Automated Backups, but supports the backup.create service that will be added in 2022.5 for Container and Core users.
blueprint:
name: Automated Daily Snapshot for Container/Core
description: Create a 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: ""
homeassistant:
min_version: "2022.5.0"
mode: single
max_exceeded: silent
variables:
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: backup.create
- if: "{{ send_notification }}"
then:
- device_id: !input notify_device
domain: mobile_app
type: notify
title: "{{ notification_title }}"
message: "{{ notification_message }}"
Edit: Now uses new if statements from 2022.5
Edit: Added a minimum version.