FR: add events and status entities for Backup status

as mentioned frequently and most recently in the release thread

please consider adding events for backup process started/finished/broken and entities for backup in process (binary) backup success (binary)

while on the subject, if at all possible, please add number entities for the individual backup counters.

Usecase/reason:

with the events and binary entities the user can automate notifications and other alerting systems.
the entities can also be used in Dashboard designs so the user is not forced to check the Backup dashboard for these statuses manually.

Aware there is a repair raised, but even that is still a must-go-to, and can be easily overlooked.

thanks for considering

Adding a use-case and context here;

I use an external MariaDB database for the Recorder and one of the things I set up a while back was a shell_command that performs a database backup. Ideally I would be able to trigger this whenever there was a Home Assistance backup triggered, eg on Core updates, on daily schedule, if I run a manual backup. This is easy enough to do if I initiate the backup myself (a simple script can trigger both the HA backup and the database backup).

If the backup events were published into the Event Bus, or any sort of Sensor existed that reflected a new backup was taken, I would be able to trigger external database backups easily and reliably, in lock-step with my HA instance and therefore providing a consistent point in time to roll back to if needed.

Also adding my use-case:
I’m also using an external mariadb, but I think this is secondary.

  1. I GUESS when the auto-purge from HA is finished (latest at 4:45am)
  2. I start a shell_command to mariadb-dump the HA-database to a folder within the config-directory of HA and gzip it
  3. At the end of the dump I set a binary-sensor to TRUE
  4. As soon as the binary-sensor is TRUE an automation kicks in to manually invoke the service “backup.create_automatic”, which also uploads the backup to my NAS
  5. I GUESS when this upload is finished to backup my NAS to an offsite location to fulfill 3-2-1 backup strategy

The “GUESS” of point 1 and point 5 I would like to eliminate through HA-provided events:

  1. An event when auto-purge is done so I know when to start backup
  2. An event when backup is done so I know when to start offsite backup

though understandable, your guess 1 is not related to backup.

guess 2 is an obvious ‘requirement’, and what this FR is all about, so yes, thanks for adding that.

Absolutely right regarding “guess 1”. I just wanted to add it for completeness of the use-case