DIY Ceiling Fan Control with Raspberry Pi and CC1101 Transceiver

Hello everyone! :wave: I wanted to share a fun DIY project I recently completed, and I hope it might inspire others or be useful for someone in the community.

After using Home Assistant for several years to automate various aspects of my home, I decided to tackle controlling my ceiling fans. The fans use a basic RF (433MHz) remote, and I thought it would be a great challenge to integrate them into my smart home setup.

I started by using Universal Radio Hacker (URH) to capture and analyze the RF protocol used by the remote. Once I understood the protocol, I designed a simple API to send the necessary RF commands using a CC1101 transceiver connected to a Raspberry Pi. This setup allows me to control the fans just like the remote does, but now integrated seamlessly into Home Assistant! :tada:

To make this project even more accessible, I created a template based on the excellent Template Fan and Broadlink guide. Everything is neatly packaged into a GitHub repository, which includes detailed instructions and all the necessary code.

If you’re interested in learning more or want to try this out yourself, you can find the project here: Star Ceiling Fan Control. I’d love to hear if anyone gives it a try or if there are any improvements you’d suggest! :rocket:

Cheers, and happy tinkering! :star2: