This project started from with this thread explaining how you can use a Sonoff RF controller to integrate a ceiling fan with HA.
Well, after many days and hours of trying to get this working I eventually discovered I had the 303Mhz version of the remote and therefore incompatible with the 433Mhz controller… This became personal.
I ended up using an ESP8266, an 8 bank relay, and buying a 2nd remote control. From there I soldered 8 wires from each button and connected each, along with a ground bus, to the relay bank. I added the ESP8266 via ESPHome to HA and mapped each relay to a button. When a button is pressed this fires an automation to turn on a virtual switch to let me know the fan or light has been turned on in my HA dashboard. I plan to use a scene controller on the wall so this is the only way the light can be controlled so this doesn’t get out of sync.
It was a long way to go, but it works!
Stupid fan…
![68926764415__472B652E-148E-4AEC-AA53-4C572ED4F135|375x500]