#If/Then check specific date using UI editor

1 messages · Page 1 of 1 (latest)

bold tartan
#

Is there a UI way to do an if/then condition to check if the action is executing on a specific date? e.g. 10/31 every year or 12/25 etc...
I know i could do this with a template but wondered if there was a UI method

if:
  - condition: template
    value_template: "{{ now().month == 10 and now().day == 31 }}"
then: [ DO STUFF ]
cobalt estuary
#

template is the way, there's no condition for dates

pale iris
#

It can be more compact but you’re still stuck with a template:

- if: "{{ (now().month, now().day) == (10, 31)"
  then: [ DO STUFF ]
hasty venture
#

You can make a local calendar with all day events and check if it's "on"

bold tartan
#

hmm that might be the route i take