#Notification in every 4 month
1 messages · Page 1 of 1 (latest)
You can use a datetime helper, or just create a daily trigger but with a date condition
This is more of a #1284980040940912641 topic, but I think I would try to use a template trigger. This way you don't have to make a datetime helper but can have a bit more control of when the automation triggered. This is what I just used to test the concept. ```python
{{ now().month in [1, 5, 8] and now().day == 27 and now().hour == 5 and now().minute == 47 }}
Here's the entire automation: ```yaml
alias: Template automation
description: ""
triggers:
- trigger: template
value_template: >-
{{ now().month in [1, 5, 8] and now().day == 27 and now().hour == 5 and now().minute == 48 }}
conditions: []
actions: - action: persistent_notification.create
metadata: {}
data:
message: This is a test of the template automation.
title: Template automation test
mode: single```And I got help from this forum post by 123: https://community.home-assistant.io/t/wth-why-isn-t-there-a-date-range-or-month-condition/469275/4?u=d_sellers1