The following YAML code demonstrates how to receive notifications from Home Assistant on the first Wednesday of each month:
alias: first wednesday
description: send email that Kananaskis park is free on 1st Wednesday of month
trigger:
- platform: time
at: "18:14:00"
condition:
- condition: template
value_template: |
{% set t = now() + timedelta(days=1) %}
"{{ t.isoweekday() == 4 and t.month != (t - timedelta(days=7)).month }}"
action:
- service: notify.gmail
data:
message: first Wednesday of the month tomorrow. Go to Kananaskis? It is free!!!
title: First Wednesday of the month tomorrow
- service: tts.google_translate_say
data:
entity_id: media_player.den_speaker
message: Tomorrow is the first Wednesday of the month. Consider Kananaskis trip?
mode: single