Hi everyone, I had been searching this forum on how to integrate an iFan03 with ESPHome to smarten up a legacy RF remote controlled fan. Found a few resources on using Tasmota, but none on ESP Home. Since I like to keep it simple and have a bunch of devices on ESPHome already, I tried a few things, and with help from several folks in this community I got it to work (for me).
What works : iFan03 is flashed with ESPHome and integrated in HA. The 3 relays are controlled by pins 14, 12 and 15 (low/medium/high) and the light by pin 9. The 3 relays and the light switch can be activated as separate entities in HA.
What does not work : I could not configure it as a fan entity. I have tried this approach proposed by @finity here. I was able to figure out which changes to make the the ifan02h file and the config file, but in the end could not get the right behavior from the buttons consistently (for instance, switching from medium to low setting worked every other press : first press no behavior, second press worked).
How I circumvented that : Node Red flows…
In hope this might help somebody, here is
- config in ESP Home
esphome: name: ifan03 platform: ESP8266 board: esp8285 wifi: ssid: "xxxxxxx" password: "xxxxxxx" # Enable logging logger: # Enable Home Assistant API api: ota: output: - platform: gpio pin: GPIO9 id: light_output inverted: true light: - platform: binary name: "iFan03 Light" output: light_output id: ifan03_light switch: - platform: gpio pin: GPIO14 name: "relay_1" id: fan_relay1 - platform: gpio pin: GPIO12 name: "relay_2" id: fan_relay2 - platform: gpio pin: GPIO15 name: "relay_3" id: fan_relay3 text_sensor: - platform: version name: Master Fan ESPHome Version sensor: - platform: wifi_signal name: Master Fan WiFi Signal Strength update_interval: 60s
- NodeRed Flows
- Lovelace (using button card)
(yes, the fans are spinning when on )
Hope this helps someone in this wonderful community !