I used this blueprint, it allows you to use the buttons for turning on and off, hold to increase/decrease brightness, double tap for full or minimum brightness.
Getting the brightness to smoothly change upon holding the button was impossible for me to figure out on my own, this blueprint really saved me in that regard.
The double tap changes colour temperature when you use the button connected directly to the lamp, which this blueprint unfortunately does not replicate for HA. I have yet to summon the courage to really go through the yaml and see if I can figure as much out for myself.