I want HA to send me an email on the 21st of each month with some stats on my irrigation system. I tried this automation but there is an issue with the condition. If I remove the condition, which sets the day of the month to send it, the automation will trigger but then it would trigger every day. How can I send the email on the 21st of each month?
- id: '1653879216797'
alias: Irrigation - Send usage stats on the 21st of each month
description: ''
trigger:
- platform: time
at: '20:00:00'
condition:
- condition: template
value_template: '"{{ now().day == 21 }}"'
action:
- service: notify.email_xxxxxxxxx_gmail_com
data:
message: This month's irrigation costs will be {{ states("sensor.cumulative_irrigation_cost")
}}. The total irrigation gallons used was {{ states("sensor.cumulative_gallons_used")
}}.
title: Irrigation Stats
mode: single