12v Fan speed controller

DIY? That’s a PWM output in ESPHome (with a MOSFET or BJT to drive the 12V from 3.3v). Which you can then use in a fan component.

Unfortunately I don’t know of any off-the-shelf devices. Someone else might.