Hi everybody,
I looked for, but I didn’t found…
I would create an automation every 9th day of each month…
How could I write this trigger ?
Thank you !!
Hi everybody,
I looked for, but I didn’t found…
I would create an automation every 9th day of each month…
How could I write this trigger ?
Thank you !!
Hey,
I am pretty new to this and haven’t tested myself but I think you could use the Google Calendar Component https://home-assistant.io/components/calendar.google/
and enable the sensor. Then setup a recurring calendar entry and setup your automation to use the calendar sensor. Sorry I am not sure how it will all fit together but from what I read it should work.
Regards,
Paulio
You can use something like this as a starting point:
trigger:
platform: template
value_template: "{% if now().strftime("%d") == '9' %}True{% endif%}"
My aim was to have a persistent notification every day I choose in advance !
I put my code:
- alias: "Payer le loyer"
initial_state: on
trigger:
- platform: template
value_template: '{{ now().strftime("%d") == "2" }}'
action:
- service: persistent_notification.create
data_template:
message: " "
title: "Payer le loyer !!"
We could imagine to involve it with a selection of day and a reminder option (daily, monthly, etc…) in GUI but I’ll do that later !