Here is yet another CC1101 ESP32 fan/light remote. I started this a while back based on code someone had posted for Hunter fans. I can’t find the original. I could never get it to work great with my Minka fans, but Claud helped me figure out what the dip switches. Anyway, the README in the linked repo explains the MQTT topics and wiring. I did use an ESP8266 because that’s what I had handy, but it will work with ESP32 just fine. The README was also written by Claud because I’m not awesome at writing such thigs.