Getting Date and Time Stamp Logged with Motion Sensor

Hey everyone, I’m trying to set up a motion sensor in my front porch using Home Assistant, and I want it to detect movement, log the date and time, and notify my phone. I’ve created two helpers—one for detecting movement and another for capturing the date and time. However, the date and time aren’t showing up in the notifications.

Here’s what I’ve done so far: I set up a helper for movement detection, which works fine. Then, I created another helper for the date and time stamp. I integrated both into an automation, but the date and time aren’t being captured correctly.

I’ve attached some screenshots of my setup, but the issue seems to be that the date and time aren’t being passed through to the notification. For example, I’d like the notification to say, “Front porch movement detected at 22:17hrs on 12/04/2024,” but instead, it just says “Front porch movement detected.”

I’ve checked the error logs, and it seems there’s an issue with how the date and time are being handled in the automation. I’m not sure if it’s a problem with the helper or how it’s integrated into the automation.

If anyone has experience with this or knows a workaround, I’d really appreciate the help! I’m hoping to get this sorted so I can have accurate timestamps for my motion alerts. Thanks in advance!