HA Backup Status Entity

The only thing that stops me from automating the backups using the “samba backup” addon is the fact that I would like to receive a notification when the backup is successful or especially when it fails. I can solve this in Samba backup with the status entity “sensor.samba_backup” and trigger a notification when the corresponding change occurs

The new HA backup system must offer status entities. A backup solution is useless without an easy way to monitor the success/failure of the backups. This was submitted as a bug via Git Hub (which it is), but the issue was unfortunately closed and suggested to be moved here. I cant found any Sensor for BackUp Status · Issue #138181 · home-assistant/core · GitHub.

The current google drive add-on handles this marvelously with status and “staleness” sensors.

This should get a lot more votes than it has right niw. I would love to trigger an automation if my nightly backup fails and I would love to show the time of last backup in my dashboard.

I agree at least a sensor that shows when the last successful backup was done is essential.

I totally support the addition of sensors for the backup system. In addition to the ones mentioned above, I’d also like to see sensors for: -

  • Count of Automatic backups
  • Count of Manual backups

It’s insane that this new backup solution was implemented without a sensor to monitor if it was successful? This is surely the most fundamental aspect of this and it appears to still not exist months later or am I missing something here?

I concur. We need status sensors for dashboard and automations.


This is coming with the next release.

1 Like

But so i cant Trigger If the Backup fails, a Backup Status ist missing

2 Likes

Thank you :+1:t2:

any idea when this will be implemented?

It was implemented with 2025.4 release.
Go to Settings->Devices&Services and you should find a Backup integration with sensors.

What i need to add in the config yaml?

I can’t remember to add anything to configuration.yaml. Don’t you have the backup integration in the settings? Maybe i have added the integration?

1 Like

The Backup integration is part of the default integrations.
Just to clarify - at the moment, only the following 3 sensors are implemented:

But more are to come in next Release(s)

1 Like

thats my state too, thanks. The states are there but the integration needs to be add via configuration.yaml (popup when i try to add the integration) but nowhere is any information about this how to add.

Edit: cache problem :-/ now the integration exists

We should also have an inventory of the backups from all the locations following the 3-2-1 rule. I can look in the file systems and see:

  • in the backup folder, 3 Automatic and 6 Add-on backup with name, version, and date/time stamps
  • in Nabu Casa, my 1 saved backup with date/time stamps
  • in Google Drive, my backups (just enabled, need to let it run!)

Would be helpful if all of these could be listed on a card to confirm health/illness of our platform. I’m not going to want it often, but when I want it I need it easily!

For the local files, could probably build a CLI script easily enough.

Appreciate the consideration.

So I spent a lot of time yesterday developing a python script to read, parse and return JSON with file data from the /backup folder. Works great in my dev environment and from the terminal in HAOS (I use the managed environment on a Pi-4).
Unfortunately, I cannot, for the life of me, figure out how to access the /backup folder from a script in the captive environment. The script is triggering, I’m getting logging messages, and all of them say “/backup does not exist”
Does anyone know how to access that folder from a shell command or Python?
I mean, I guess I could click through to the “all backups” page but where’s the fun in that?