Use time_date sensors in scripts

Hi i’m still a newbie in HA and find the syntax really difficult. I added the time sensors according to HA
In the configuration yaml. That worked I see the sensors but I Can’t use them. I want to add 5 hours to sensor.time in a telegram message button can’t get it to work. The message sending works but I don’t get the time in there.

Share your message action configuration.

This is a piece of the code


service: notify.telegram_jd
data:
  title: JD is niet meer thuis sinds {{ sensor.time }}hr!!!!!
  message: Eén of meerdere deuren of ramen staan open!!!

title: JD is niet meer thuis sinds {{ states('sensor.time') }}hr!!!!!