Adding an interger an minutes to the current time

I would like to keep the data I have for how long my commute is in minutes. And add it to the current time. I have tried several iterations but I can’t do it.

template:
  - sensor:
    - name: "ETA to Work"
      state: "{{ as_timestamp(now()) + sensor.commute_time | timestamp_custom('%H:%M') }}"

I have also tried “{{ sensor.time) + sensor.commute_time | timestamp_custom(’%H:%M’) }}” and using float and no luck. I want to add the HERE commute time to the current time. What else should I try?

Try this:

state: "{{ (now() + timedelta(minutes=states('sensor.commute_time'))).strftime('%H:%M') }}"

Interesting. But it shows as unavailable. Is there a log I can check to see which part it does like?

Developer Tools

Thanks it says this

TypeError: unsupported type for timedelta minutes component: str

Try this:

state: "{{ (now() + timedelta(minutes=states('sensor.commute_time')|int)).strftime('%H:%M') }}"

Hooray it works! I was even able to add another time delta of 10 minutes to account for parking and the elevator.