I have the following two automations that should trigger when a SAMBA backup is created, and also a native backup. Neither of them are triggering. They work manually. I am not sure what I have missed.
I noticed in the native version the to: in the GUI is Creating a backup, but in the YAML it is create_backup
alias: Notify When Native Backup Completed
description: Sends a notification when a Home Assistant backup has been completed
triggers:
- entity_id:
- sensor.backup_backup_manager_state
trigger: state
to: create_backup
conditions: []
actions:
- data:
message: >-
" ✅ A backup of your Home Assistant instance was successfully created at
{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
title: Home Assistant Backup Complete
action: notify.notify
- data:
message: >-
A backup of your Home Assistant instance was successfully created at {{
now().strftime('%Y-%m-%d %H:%M:%S') }}
title: "[HA] ✅ Home Assistant Backup Complete"
target: [email protected]
action: notify.ms365_mail_name_m365
mode: single
description: Sends a notification when a SAMBA Home Assistant backup has been completed
triggers:
- entity_id:
- sensor.samba_backup
to: SUCCEEDED
trigger: state
conditions: []
actions:
- data:
message: >-
" ✅ Samba Backup completed successfully run at {{
now().strftime('%Y-%m-%d %H:%M:%S') }}"
title: Home Assistant Backup Complete
action: notify.notify
- data:
message: >-
A SAMBA backup of your Home Assistant instance was successfully created
at {{ now().strftime('%Y-%m-%d %H:%M:%S') }}
title: "[HA] ✅ Home Assistant SAMBA Backup Complete"
target: [email protected]
action: notify.ms365_mail_name_m365
mode: single