#Date and Time Last Triggered Notification

1 messages · Page 1 of 1 (latest)

timber bolt
#

How would I add the date in in a notification message of the last time a script was run. I see last triggered is an attribute I could use.

flat turret
#

You'd use templates

timber bolt
#

I have used templates in the past. Once that is and took a while to get it working in past thread I posted. I tried to use it in this one. I got help on this last time because I was trying to pull the state of a NFC Tag last scan time. So I am using that as somewhat of my guide for the script last trigger but not having any luck at the moment as I don't full understand it quite enough.

flat turret
#

Post what youve tried

timber bolt
#

Message: "Test Message: {{ as_timestamp(states.script.my_test_script.last_triggered) | timestamp_custom('%Y-%m%d %H:%M%S') }}

flat turret
#

close, states.script.my_test_script.attributes.last_triggered