Once I used a TRIAC-based voltage dimmer with Raspberry Pi/Arduino to adjust the brightness of a traditional 220V light bulb. That particular dimmer was designed and sold by a local electronics online shop. Here is something similar: https://www.amazon.com/Light-Dimmer-Module-Arduino-Raspberry/dp/B06Y1DT1WP