Subtracting time in an automation

Hello, I am using this data in my automation to send a notification to my phone for my reolink camera:

service: notify.mobile_app_<your_device_id_here>
  message: This message will open Camera 8 on Reolink app
    priority: high
    ttl: 0
    clickAction: >-

It works fine and takes me to the time of the recording of when the notification occurred. What I would like to do is to change the now() time to be 5 second prior but I have not been able to figure out how to do that. Any ideas?


You can use the timedelta function

{{ (now() - timedelta(seconds=5)).isoformat()}}

That’s what I needed. Thank you!