Trigger.entity_id last changed not working

Hi!

I have this automation, in order to see the last changed of any from those triggers, but it is not working. Any idea? I get the notification “None”. Thank you!

alias: LastState - Sensor Broadlink Computer
description: ''
trigger:
  - platform: state
    entity_id:
      - sensor.broadlink_computer_humidity
  - platform: state
    entity_id:
      - sensor.broadlink_computer_temperature
condition: []
action:
  - service: persistent_notification.create
    data:
      message: >
        {{ as_timestamp(states.trigger.entity_id.last_changed)
        }}
mode: parallel
max: 2

I think I found out how, anyone can confirm if this usage is ok?

{{ as_timestamp(states[trigger.entity_id].last_changed) }}