Get device_id from entity_id in automation

Hi,
I have the following automation using a blueprint that I would like to make easier to understand as yaml. As you can see I have the device_id in there. Is there a way I get use entity_id to get device_id to make it more human readable? Here is my automation:

- id: "1703675253258"
  alias: Spare bedroom hue dimmer
  description: ""
  use_blueprint:
    path: patpac9/Hue_Dimmer_Switch_Easy_Custom_Buttons.yaml
    input:
      controller: Spare bedroom dimmer
      on_released:
        - service: light.toggle
          target:
            entity_id: light.spare_bedroom_wall_light
          data: {}
      up_pressed: []
      up_released:
        - device_id: 54fb76a3d50d007b6058810800250a79
          domain: light
          entity_id: light.spare_bedroom_wall_light
          type: brightness_increase
      down_pressed: []
      down_released:
        - device_id: 54fb76a3d50d007b6058810800250a79
          domain: light
          entity_id: light.spare_bedroom_wall_light
          type: brightness_decrease

Many thanks

Have you tried this?

- id: "1703675253258"
  alias: Spare bedroom hue dimmer
  description: ""
  use_blueprint:
    path: patpac9/Hue_Dimmer_Switch_Easy_Custom_Buttons.yaml
    input:
      controller: Spare bedroom dimmer
      on_released:
        - service: light.toggle
          target:
            entity_id: light.spare_bedroom_wall_light
          data: {}
      up_pressed: []
      up_released:
        - service: light.turn_on
          target:
            entity_id: light.spare_bedroom_wall_light
          data:
            brightness_step_pct: 10
      down_pressed: []
      down_released:
        - service: light.turn_on
          target:
            entity_id: light.spare_bedroom_wall_light
          data:
            brightness_step_pct: -10

Yep spot on! Thanks