Hello all, I’m trying to create an automation that adds the time from a sensor to the current time.
I currently have a waze sensor that calculates the time it will take me to reach home which gets triggered once I leave work - I’m struggling to figure out how to format this in yaml and have the following:
message: Chris will be home around {{ ( as_timestamp(now()) + (15 * ( {{ states (‘sensor.chris_time_from_work’) }} ) ) | timestamp_custom(‘%I:%M %p’) }}
I might have used the 15 by accident - I had a partial response from someone else.
But you’re idea might be the way to go. Make a input_datetime, and add the sensor travel time to the current datetime when the automation runs, then print that value to a message?