Condition required if today's date is >= to date set by a Date Helper

Hi I want to set an automation to turn the heating on when I come back from being away (Like on holiday)

I was going to set up a nights away counter, but then I thought it would be easier to use a date helper calendar to set the date I was coming home.

But not sure what to use in the automation editor to acheive the condition statement to get if today’s date is >= to date set by a Date Helper

Tried

condition: time
after: input_datetime.return_home

And set the return date to yesterday, but it did not pass when I did “Test”

Regards

As the docs state: “Please note that the time condition only takes the time into account. If an referenced sensor or helper entity contains a timestamp with a date, the date part is fully ignored.”

You can use a template condition:

condition: template
value_template: >
  {{ now() >= states('input_datetime.return_home') | as_datetime | as_local }}
1 Like

Many thanks, works like a charm.

Regards Dave