Trigger.to_state.last_changed in Node RED?

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

Yes should be possible.

I am not at my house now but it should be

msg.data.new_state.last_changed

If you’re new to nodered add state change node, put the entity id and add debug node to the output with complete msg object. Trigger the entity and you should see the data output. From there you can build the conditions for your automation.