hello,
i´m using the following automation, to send a notification when a window is open for 30 minutes.
two questions:
- how could i use a timestamp in a notification text?
- how could i include the timestamp when the window is opened (means 30 minutes before the trigger fires? i would like to know since the window is open?
alias: Notify_Window_OPEN_Bad
description: ""
trigger:
- type: opened
platform: device
device_id: 4fb78c797227e1af24e3df548056e7dd
entity_id: binary_sensor.aqara_dw_28_contact
domain: binary_sensor
for:
hours: 0
minutes: 30
seconds: 0
condition: []
action:
- service: notify.notify
data:
message: Window OPEN Bad
title: Window OPEN Bad
- service: notify.persistent_notification
data:
message: Window OPEN Bad
title: Window OPEN Bad
mode: single
thank you in advance
br
Frank