Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #HACS安裝https://github.com/chomupashchuk/delete-file-home-assistant
- alias: new_month_do_things
- description: 每月-定時刪除掃地機地圖截圖
- mode: single
- trigger:
- - platform: time
- at: "00:01:00"
- condition:
- - condition: template
- value_template: "{{ now().day == 1 }}" #每月1號
- action:
- - data:
- folder: /config/www/tmp #路徑
- time: 0
- only_extensions: .jpg
- no_warn: true
- action: delete.files_in_folder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement