I’m testing some door sensors to shoot off notifications when it opens and closes, it seems to be working well, but I was wondering is there a way to display the message in 12hr - am/pm?
alias: Door Sensor - Test Contact closed.
description: ""
trigger:
- type: not_opened
platform: device
device_id: 7b5490b6f8738f74b47ee8cdcd8870b8
entity_id: binary_sensor.door_sensor_test_contact
domain: binary_sensor
condition: []
action:
- service: notify.mobile_app_xxxxxx
data:
message: >-
The {{ trigger.from_state.attributes.friendly_name }} was closed at
{{now().hour}}:{{now().minute}}.
title: The {{ trigger.from_state.attributes.friendly_name }} closed.
mode: single