Using a timer remaining time as a parameter

Hi,

I am basically looking for a way to use a timer’s remaining time as an input for a new timer.
I thought of using an input_number as a base and incrementing it with the timer’s remaining time, but I am not able to convert that value to an integer:

{{ state_attr('timer.tablette_semaine','remaining') }}

gives a nice value of 7:40:41
But

{{ as_timestamp(state_attr('timer.tablette_semaine','remaining')) }}

gives

ValueError: Template error: as_timestamp got invalid input ‘7:40:41’ when rendering template ‘{{ as_timestamp(state_attr(‘timer.tablette_semaine’,‘remaining’)) }}’ but no default was specified

Obviously, a default value doesn’t solve my problem as

{{ as_timestamp(state_attr('timer.tablette_semaine','remaining'),0) }}

gives “0”

How can I get that remaining time in a usable value?
Thanks

Like this:

{{ as_timedelta(state_attr('timer.main_gate_timer', 'remaining')).total_seconds() }}

See:

Exactly… Thank you!