home-automation-home-assistant/automations/backups.yaml

35 lines
1017 B
YAML
Raw Normal View History

2019-01-20 17:16:56 +00:00
- alias: Backup Error
trigger:
- platform: state
entity_id: binary_sensor.backup_error_occured
to: 'on'
action:
- service: notify.telegram_group
data:
title: '*Backup-Problem:*'
2019-01-21 21:53:15 +00:00
message: 'Es gab Fehler beim *Erstellen* des Backups. Bitte prüfen!'
2019-01-20 17:16:56 +00:00
- service: notify.telegram_group
data:
message: 'Anbei die Log-Datei :)'
data:
document:
file: /backuplogs/run.err.log
caption: Backup Creation Log
- alias: Backup Sync Error
trigger:
- platform: state
entity_id: binary_sensor.backup_sync_error_occured
to: 'on'
action:
- service: notify.telegram_group
data:
title: '*Backup-Problem:*'
2019-01-21 21:53:15 +00:00
message: 'Es gab Fehler beim *Synchronisieren* des Backups. Bitte prüfen!'
2019-01-20 17:16:56 +00:00
- service: notify.telegram_group
data:
message: 'Anbei die Log-Datei :)'
data:
document:
2019-01-25 23:16:30 +00:00
file: /backuplogs/sync.out.log
2019-01-20 17:16:56 +00:00
caption: Backup Sync Log