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:
- When off, pressing the button once, will turn the light on at full brightness. This is working
- When on, pressing the button once, will turn the light off. This is working as well
- 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 !!