Is it possible to get trigger.to_state.last_changed in Node RED?
Trying to convert the folllowing YAML automation to Node RED
- service: notify.ios_iphone
data_template:
message: 'Someone has pressed the door bell at {{now().strftime("%H:%M %d-%m-%y")}} '
data:
attachment:
content-type: jpeg
url: "http://192.168.1.170:8123/local/snapshots/front_door_camera_{{ trigger.to_state.last_changed|urlencode }}.jpg"
entity_id: camera.ip_cam_2