Controlling a RF Device (Ceiling Fan) with ESPHome, 304MHz?

I have a similar remote and was able to use universal radio hacker with an rtl-sdr to pretty easily decipher an rc switch protocol. I did a little write up here:

If you don’t want to cannabilize a remote, I bet you could easily make a clone remote with a cc1101 module attached to an esp8266 and control it with mqtt or esphome