The following library is used for work with dimmer with the help of ESP32 based boards.
Current library: https://github.com/RobotDynOfficial/RBDDimmer