Compare a duration with a time

Because for integrations there is no duration entity I need now to compare a duration (sensor.fernseher_xyz_laufzeit) with a time (time.play_time_limit).
=> 05:00:00
with 3.07

If the time is less then the duration, the trigger shall activate.
Can someone help me how to compare them?

I solved it this way now:
{{states.sensor.fernseher_xyz_laufzeit.state|float>states('time.play_time_limit').split(':')[0]|int+(states('time.play_time_limit').split(':')[1]|int+9)/60}}
(+9 because the tv is consuming, right after turn the power outlet on, above 30W and the sensor is thinking the tv is running)