Hi,
the display components has a set_brightness() command. I use it with a service in my esphome display
- service: brightness
variables:
brightness: int
then:
lambda: |-
id(rgb8x32)->set_brightness(brightness);
But you can read out the potentiometer (analog) and write the value to set->brightness.