Raspberry Pi gpio dimmer control for Hue bulbs

At the moment I can control all my Hue bulbs via the Home Assistant frontend, and also have a reed switch on the front door to switch on a light when the door opens.

binary_sensor:
  - platform: rpi_gpio
    device_class: opening
    ports:
      14: Front Door

I’ve read a lot about using the Philips dimmer, but I’m trying to figure out how to add a dimmer switch to gpio inputs and control a bulb with it.
I’ve had mixed results with push button control, so any advice would be useful.