diff --git a/automations/system/backup.yaml b/automations/system/backup.yaml new file mode 100644 index 0000000..3ac91c1 --- /dev/null +++ b/automations/system/backup.yaml @@ -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: {} \ No newline at end of file diff --git a/integrations/telegram_bot.yaml b/integrations/telegram_bot.yaml index 4e945c4..9605373 100644 --- a/integrations/telegram_bot.yaml +++ b/integrations/telegram_bot.yaml @@ -6,4 +6,5 @@ telegram_bot: api_key: !secret telegram_api_key allowed_chat_ids: - !secret telegram_dev # dev chat - - !secret telegram_chk # christian \ No newline at end of file + - !secret telegram_chk # christian + parse_mode: html \ No newline at end of file diff --git a/scripts/create_backup.yaml b/scripts/create_backup.yaml new file mode 100644 index 0000000..d2c0494 --- /dev/null +++ b/scripts/create_backup.yaml @@ -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') }} diff --git a/scripts/telegram_test.yaml b/scripts/telegram_test.yaml index d3f7f8b..acc2429 100644 --- a/scripts/telegram_test.yaml +++ b/scripts/telegram_test.yaml @@ -5,6 +5,9 @@ sequence: data: message: test from Telegram Test1 arget: -391668323 + - service: notify.dev_telegram + data: + message: test from Telegram with service "notify.dev_telegram" mode: single # alias: Telegram Test1