Advertisement
xangin

Automation in month & day

Jun 26th, 2023 (edited)
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.43 KB | None | 0 0
  1. # 此範例為在2、4、6、8、10、12月1號的早上8點才會執行自動化
  2. description: "特定月份及日期觸發自動化"
  3. mode: single
  4. trigger:
  5.   - platform: time
  6.     at: "08:00:00"
  7. condition:
  8.   - condition: template
  9.     value_template: "{{ now().month in [2,4,6,8,10,12] }}"
  10.   - condition: template
  11.     value_template: "{{ now().day == 1 }}"
  12. action:
  13.   - service: notify.line_notify
  14.     data:
  15.       message: Hello!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement