Add Backup Notifications
Tá an tiomantas seo le fáil i:
35
automations/backups.yaml
Comhad gnáth
35
automations/backups.yaml
Comhad gnáth
@@ -0,0 +1,35 @@
|
||||
- alias: Backup Error
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.backup_error_occured
|
||||
to: 'on'
|
||||
action:
|
||||
- service: notify.telegram_group
|
||||
data:
|
||||
title: '*Backup-Problem:*'
|
||||
message: 'Es gab Fehler beim *Erstellen* des Backups! Bitte prüfen!'
|
||||
- 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:*'
|
||||
message: 'Es gab Fehler beim *Synchronisieren* des Backups! Bitte prüfen!'
|
||||
- service: notify.telegram_group
|
||||
data:
|
||||
message: 'Anbei die Log-Datei :)'
|
||||
data:
|
||||
document:
|
||||
file: /backuplogs/sync.err.log
|
||||
caption: Backup Sync Log
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir