Get information from a device trigger

Hello

New to home assistant here

I have set an automation like this

alias: switch short press
description: ""
trigger:
  - device_id: 075fb43a9dff8c7d88d95889cbc70427
    domain: zha
    platform: device
    type: remote_button_short_press
    subtype: remote_button_short_press
condition: []
action:
  - service: light.turn_on
    target:
      entity_id: >-
        {{ expand('light.lights') | selectattr('entity_id', 'in',
        area_entities(area_id(XXXXXXX))) |map(attribute='entity_id') |
        list }}
    data:
      brightness_pct: "{{ states('input_number.light_brightness') | float }}"
mode: single

I scratch my head on the XXXXX part I want to get the device_id of the triggering device
Looking at the trigger I get this details

{'id': '0', 'idx': '0', 'alias': None, 'platform': 'device', 'event': <Event zha_event[L]: device_ieee=00:15:8d:00:02:82:8e:06, unique_id=00:15:8d:00:02:82:8e:06:1:0x0012, device_id=075fb43a9dff8c7d88d95889cbc70427, endpoint_id=1, cluster_id=18, command=single, args=press_type=single, attr_id=85, value=1.0, params=>, 'description': "event 'zha_event'"}

Going deeper with trigger.event get me there

<Event zha_event[L]: device_ieee=00:15:8d:00:02:82:8e:06, unique_id=00:15:8d:00:02:82:8e:06:1:0x0012, device_id=075fb43a9dff8c7d88d95889cbc70427, endpoint_id=1, cluster_id=18, command=single, args=press_type=single, attr_id=85, value=1.0, params=>

Despite all my tries, I cannot find a syntax to reach device_id
trigger.event.data is empty
trigger.event.device_id is empty
and many more

If someone can kindly explain me how to go from there

trigger.event.data.device_id

You could simplify it a bit and avoid the unnecessary expand() by starting with the area_entities()

{{ area_entities(area_id(trigger.event.data.device_id)) 
| select('match', 'light\.') | list }}

Or, if you are using the light group as a whitelist, use the entity_id attribute to get a list of the grouped entities:

{{ state_attr('light.lights', 'entity_id') 
| select('in', area_entities(area_id(trigger.event.data.device_id))) | list }}

Thank you @Didgeridrew !

Feel a bit stupid here, I must have disregarded going further since data was empty.

Thanks also for the suggested improvement, indeed I use light.lights as whitelist