add: Backup automation

This commit is contained in:
Christian Kauer 2021-11-07 20:06:10 +01:00
parent 85f4b717d4
commit 9e257717ca
4 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,10 @@
# https://www.home-assistant.io/integrations/hassio
description: Backup erstellen
alias: Backup erstellen
id: 387c728d-9a16-43fc-a438-e94c47a82106
trigger:
- platform: time
at: "02:00:00"
action:
- service: script.create_backup
data: {}

View File

@ -6,4 +6,5 @@ telegram_bot:
api_key: !secret telegram_api_key api_key: !secret telegram_api_key
allowed_chat_ids: allowed_chat_ids:
- !secret telegram_dev # dev chat - !secret telegram_dev # dev chat
- !secret telegram_chk # christian - !secret telegram_chk # christian
parse_mode: html

View File

@ -0,0 +1,9 @@
alias: create backup
sequence:
- service: notify.dev_telegram
data:
message: >
Home Assistant erstellt Backup_{{ now().strftime('%Y-%m-%d') }} 💾
- service: hassio.backup_full
data:
name: Backup_{{ now().strftime('%Y-%m-%d') }}

View File

@ -5,6 +5,9 @@ sequence:
data: data:
message: test from Telegram Test1 message: test from Telegram Test1
arget: -391668323 arget: -391668323
- service: notify.dev_telegram
data:
message: test from Telegram with service "notify.dev_telegram"
mode: single mode: single
# alias: Telegram Test1 # alias: Telegram Test1