Aqara Switch lumi_remote_b1acn01

I am using a Aqara switch for controlling GE smart bulb installed in a night lamp. I am using the ZHA - Aqara Wireless Mini Switch blueprint by SeanM. Here is what I am trying to achieve:

  1. When off, pressing the button once, will turn the light on at full brightness. This is working
  2. When on, pressing the button once, will turn the light off. This is working as well
  3. When on, if I long press the button, I would like the light to start dimming up until the minimum brightness it can go to without being completely turned off. The longer you press, the dimmer it gets. I am having no luck getting this to work. Currently, if I long press the button, the light starts dimming and turns off.

Has anyone done something similar and if so can you please help me? I would appreciate any help I can get.

Thanks in advance !!