Hue Dimmer Switch Only Works Intermittently

I have a few Hue dimmer switches that I removed from the Hue bridge and paired directly do Zigbee2MQTT via a Sonoff USB receiver. For now I just want simple on/off/increase/decrease functionality. However, after implementing my Automation, it seems to be very intermittent as to whether it works or not. Here is one of the automations:

alias: Alex Dimmer Switch Actions
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.alex_dimmer_switch_action
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{trigger.from_state.state == 'up_press_release'}}"
        sequence:
          - device_id: c46994fbaf2ee3f0c6573aca5e27da85
            domain: light
            entity_id: light.alex_night_stand
            type: brightness_increase
          - device_id: 627ae3f2a53547bf1922d188339d9fcb
            domain: light
            entity_id: light.alex_shelf
            type: brightness_increase
      - conditions:
          - condition: template
            value_template: "{{trigger.from_state.state == 'down_press_release'}}"
        sequence:
          - device_id: c46994fbaf2ee3f0c6573aca5e27da85
            domain: light
            entity_id: light.alex_night_stand
            type: brightness_decrease
          - device_id: 627ae3f2a53547bf1922d188339d9fcb
            domain: light
            entity_id: light.alex_shelf
            type: brightness_decrease
      - conditions:
          - condition: template
            value_template: "{{trigger.from_state.state == 'off_press_release'}}"
        sequence:
          - type: turn_off
            device_id: c46994fbaf2ee3f0c6573aca5e27da85
            entity_id: light.alex_night_stand
            domain: light
          - type: turn_off
            device_id: 627ae3f2a53547bf1922d188339d9fcb
            entity_id: light.alex_shelf
            domain: light
      - conditions:
          - condition: template
            value_template: "{{trigger.from_state.state == 'on_press_release'}}"
        sequence:
          - type: turn_on
            device_id: c46994fbaf2ee3f0c6573aca5e27da85
            entity_id: light.alex_night_stand
            domain: light
          - type: turn_on
            device_id: 627ae3f2a53547bf1922d188339d9fcb
            entity_id: light.alex_shelf
            domain: light
mode: single

This room has two Sengled bulbs and the automation just needs to control those two lights.

Are you using the E or P variant of the sonoff dongle ? iirc, the E version (which I have), isn’t out of beta support for Z2M, but is fully supported by ZHA.

I have the P version.

Hmmm… not that then! The P variant is rock solid with Z2M as far as I am aware.

Do you have any other devices that are slow or drop off the network ?
Could it be wifi interference, or perhaps you need a USB extension cable for the zigbee coordinator.

The actual bulbs are 2 floors up from the dongle, so I was thinking I might need a repeater or something. However, I believe they respond fine when controlling in HA. It seems like it’s just when using the hue remote dimmer and my automation. Works sometimes, other times it’s like it’s not registering the click. Even if I’m in the next room from the dongle holding the remote.