#new backup entity - stale trigger or condition

1 messages · Page 1 of 1 (latest)

mellow prawn
#

hello,

A new backup entity has been introduced in 2025.4.0b0, called sensor.backup_last_successful_automatic_backup it has the state 2025-03-25T10:56:35+00:00

Just curious, how do I create a trigger for this that triggerns, say if 8 days has passed from the state reported on this new entity (like a backup stale type of thing)

thanks

cunning raft
#

something like this could be used as a helper or as a condition. it should return true if the backup age is over 7 days

{{ ( now() - as_datetime( states('sensor.backup_last_successful_automatic_backup') ) ).days > 7 }}