Advertisement
xangin

delete

Oct 8th, 2024
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #HACS安裝https://github.com/chomupashchuk/delete-file-home-assistant
  2. alias: new_month_do_things
  3. description: 每月-定時刪除掃地機地圖截圖
  4. mode: single
  5. trigger:
  6. - platform: time
  7. at: "00:01:00"
  8. condition:
  9. - condition: template
  10. value_template: "{{ now().day == 1 }}" #每月1號
  11. action:
  12. - data:
  13. folder: /config/www/tmp #路徑
  14. time: 0
  15. only_extensions: .jpg
  16. no_warn: true
  17. action: delete.files_in_folder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement