espHome does not have a Display platform for the HT16K33 chip on the Adafruit LED Backpack used for their 7-segment display. Neither does it have a Display custom component. I’m not knocking espHome. To the Contrary, I think espHome is spectacular and Otto Winter is a hero. So, I tried to create an I2C custom component or a generic custom component to drive the display. I got them working, but could not get on_value lambdas to share data with them or access their functions. I’m sure a competent C++ developer could do it quickly, but that’s not me.
However, during my trials and (mostly) errors, I discovered that by including (compiling) the Adafruit_LEDBackpack code I could do whatever I wanted directly in the lambdas.
My example code is here.