#Including the trigger time in a automation
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I currently send a notification to my mobile when my workshop door is opened and I am not there. The issue is, the automation is sometimes delayed.
I want to know if i can include the trigger time in the notification text
Example: "The workshop door was opened at {time}"
Is this possible?
I have figured out i can use {{ now().hour }} etc.. but how do i make that 12h time, and what do i use for AM/PM?
{{ now().strftime('%-I %p') }}