Awesome work, I’m working on something similiar for the Hue Dimmer Switch. One thing, if you are using DeCONZ to integrate your lights into Home Assistant, there is a nice method working with deconz service calls that allows smooth dimming when button is pressed. More info can be found here: