I’ve been on a journey to integrate my smart fan into Home Assistant, and I’m thrilled to share my success story! ![]()
A few weeks ago, I came across this fantastic heat-moving fan (Fresh | 197216) and decided to give it a shot. The fan itself is a breeze to use with physical buttons for speed control, but I knew the real magic would come from integrating it into my smart home setup.
I hooked up the buttons to an ESP32 and started tinkering with ESPHome. At first, I was a bit overwhelmed, but with some research and the help of the community, I managed to configure it as a fan component in Home Assistant. Here’s what my final ESPHome config looks like:
yaml
output:
- platform: gpio
id: out_plus
pin: GPIO4
inverted: false - platform: gpio
id: out_minus
pin: GPIO5
inverted: false
button:
- platform: output
name: “Värmefläkt öka”
output: out_plus
duration: 120ms
id: varmeflakt_oka - platform: output
name: “Värmefläkt minska”
output: out_minus
duration: 120ms
id: varmeflakt_minska
The best part? I even managed to track the fan’s speed virtually! While I couldn’t read the speed directly from the GPIOs, I created a workaround using Home Assistant’s automation rules to monitor the button presses and calculate the current speed. It’s not perfect, but it gets the job done!
This project has been a fantastic learning experience, and I’m so grateful to the community for their support. If anyone else is looking to integrate a similar fan, feel free to reach out—I’d be happy to help! ![]()
Happy automating! ![]()