Actionable Notifications Turn off variable light

Hi, I have the following Automating:

alias: Luz encendida mas de 60 minutos
description: Si la luz esta enendida mas de 60 minutos genera una alerta
trigger:
  - platform: state
    to: "on"
    for:
      hours: 0
      minutes: 0
      seconds: 2
    entity_id:
      - light.officeswitchlight_light
      - light.mainentryswitchlight_light
      - light.bedroombathswitchlight_light
      - light.hall1switchlight_light
      - light.bedroomswitchlight_light
      - light.bedroomswitchlight_light_2
      - light.socialbathswitchlight_light
      - light.studyswitchlight_light
      - light.dinningswitchlight_light
      - light.dinningswitchlight_light_2
      - light.dinningswitchlight_light_3
      - light.kitchenswitchlight_light
      - light.kitchenswitchlight_light_2
      - light.hall2light_light
      - light.readroomswitchlight_light
condition: []
action:
  - service: notify.mobile_app_iphonealejo
    data:
      message: >-
        Luz encendida por mas de 60 minutos {{state_attr(named_entity,
        "friendly_name") }} - {{ trigger.entity_id }}  
      data:
        actions:
          - action: OFF_LIGHT
            title: Apagar luz
            icon: sfsymbols:lightbulb.slash
          - action: URI
            title: Ver Panel Luces
            uri: /lovelace-aviva/0
            icon: sfsymbols:lightbulb
          - action: IGNORE
            title: Ignorar
            icon: sfsymbols:xmark.circle
            destructive: true
  - wait_for_trigger:
      - platform: event
        event_type: mobile_app_notification_action
        event_data:
          action: OFF_LIGHT
    timeout:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
    continue_on_timeout: false
  - service: light.turn_off
    data: "{{trigger.entity_id}}"
variables:
  named_entity: "{{trigger.entity_id}}"
mode: single


In the iPhone I receive the specific light that have more than 60 minutes turned on, (just to save energy and if I forgot turn off any light of my house when I leave it)

I want to select the option to call the service light.turn_off with the specific triggered light {{trigger.entity_id}}. It’s possible?

In Facebook some people said you can’t pass variables to state entity, but If someone have any suggestion… Please help :blush:

I’s working now, just change this:

    target:
      entity_id: 
          - trigger.entity_id

by this:

    target:
      entity_id: '{{named_entity}}'