I would like to have a helper that shows whether a datetime helper points to the future or to the past. When the datime helper is changed or when the time in the datetime helper is reached, the helper should change its state automatically. Is there a better way than to program three automations (past, future, time reached)?
If you have a datetime it will always be future or past…when do u want time reached? Isnt that the same as past?
This sounds like a sensor. You could do this as a template sensor. Just add this in the one line template
{{ 'future' if (states('input_datetime.your_datetime_helper') | as_datetime > now()) else 'past'}}
note that to me this feels more like a binary sensor…
If you want the time reached because you want to trigger automation when it is reached, you can do that by triggering the above when it changes from future to past
Sorry, I should have expressed myself better, I would like to use the change from future to past as a trigger for another automation, is that also possible with the template?
OK your tip was ok, I think probably too complicated
yes can definitely do that with the above sensor. just trigger when the sensor goes from future to past