But if i test, it create event. Event if the template is not equal to 1.
I also tried with this template as condition and time as trigger bu it doesn’t work.
Anyone has done it? or maybe it can’t be done based on input datetime
What do you mean by this? How are you testing? Using the “Run” menu option or the automation.trigger service tests only the actions… the trigger and any conditions are skipped.
To accurately test the trigger you need to set the input datetime to a date less than 7 days ago (like today) and then set it to a date 7 or more days ago.
Instead of converting to timestamps via strptime(), just use datetime objects and methods.
The automation I posted has no conditions so it will behave the same whether you use skip conditions or not… as explained in my previous post automation.triggerskips the trigger and just executes the actions.
To accurately test the trigger you need to set the input datetime to a date less than 7 days ago (like today) and then set it to a date 7 or more days ago. The template’s evaluation must change from false to true in order to fire.
Thanks it seems ok today it was created automatically.
If i had in trigger a Time for exemple 9am will it create that évent a 9 or will it consider it’s already true?
As it is currently configured, the automation will create a new “Entretien Piscine” event every time it is triggered. It is possible to use the calendar.list_events service to check if an event already exists within a given time span. That would let you prevent creating multiple events, but there aren’t currently services to remove or edit existing calendar events. This makes it less useful for chores.
You may want to hold off on putting a lot of effort into this.
Based on the beta release notes, the To Do integration that was added at the beginning of November will be adding the ability to set due dates in next weeks release. To-dos already have services to add, update, and remove items, so they may be a better avenue for this kind of thing going forward.