Zigbee2MQTT - EPMatt/ikea_e2001_e2002.yaml

Hi Team.

I am having an issue with this BluePrint. The setup below works. Short press left is turning Light A off, long press left is turning Light B off. Short press right is turning Light A on and long press right is turning Light B on. All good there.

alias: James Bedroom -  STYRBAR Remote control
description: James Bedroom
use_blueprint:
  path: EPMatt/ikea_e2001_e2002.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.mqtt_ikea_light_switch_james_bedroom_action
    helper_last_controller_event: input_text.helper_last_controller_event
    action_button_left_short:
      - type: turn_off
        device_id: f34fc20e537615538d30ecd324d28bef
        entity_id: light.james_main_light
        domain: light
    action_button_left_long:
      - type: turn_off
        device_id: 5876888c6618fa957f931dcbd3063e5e
        entity_id: light.james_changing_matt
        domain: light
    action_button_right_short:
      - type: turn_on
        device_id: dea6733b71c96d3ddf2fa2de19818daf
        entity_id: light.james_bedroom
        domain: light
        brightness_pct: 100
    action_button_right_long:
      - type: turn_on
        device_id: 5876888c6618fa957f931dcbd3063e5e
        entity_id: light.james_changing_matt
        domain: light
        brightness_pct: 25

However. I have then set the up button short and long press to increase the brightness. But what is happening is that on a long press right which should turn on Light B is now also turning on Light A

Any ideas?

alias: James Bedroom -  STYRBAR Remote control
description: James Bedroom
use_blueprint:
  path: EPMatt/ikea_e2001_e2002.yaml
  input:
    integration: Zigbee2MQTT
    controller_entity: sensor.mqtt_ikea_light_switch_james_bedroom_action
    helper_last_controller_event: input_text.helper_last_controller_event
    action_button_left_short:
      - type: turn_off
        device_id: f34fc20e537615538d30ecd324d28bef
        entity_id: light.james_main_light
        domain: light
    action_button_left_long:
      - type: turn_off
        device_id: 5876888c6618fa957f931dcbd3063e5e
        entity_id: light.james_changing_matt
        domain: light
    action_button_right_short:
      - type: turn_on
        device_id: dea6733b71c96d3ddf2fa2de19818daf
        entity_id: light.james_bedroom
        domain: light
        brightness_pct: 100
    action_button_right_long:
      - type: turn_on
        device_id: 5876888c6618fa957f931dcbd3063e5e
        entity_id: light.james_changing_matt
        domain: light
        brightness_pct: 25
    action_button_up_short:
      - device_id: f34fc20e537615538d30ecd324d28bef
        domain: light
        entity_id: light.james_main_light
        type: brightness_increase
    action_button_up_long:
      - device_id: 5876888c6618fa957f931dcbd3063e5e
        domain: light
        entity_id: light.james_changing_matt
        type: brightness_increase