Hi, I'm trying to create an automation to delete a backup after 7 days using a custom service built by chomu https://github.com/chomupashchuk/delete-file-home-assistant.
I managed to make the delete files showing as part of the service method, but when I try to delete the file from the backup folder, it tells me that the folder cannot be found.
My configs below:
service: delete.files_in_folder
data:
folder: /backup/
time: 604,800
only_extensions:
- .tar
Error:
Error while executing automation automation.daily_backup_housekeeping_1_week: Mandatory key "folder" is missing. @ data['folder']
To add on, I tried declaring the path as both "/backup" and "/backups" and it still didn't work with the same error.
Can someone help me?