Hi, I dont know if anyone is familiar with the Ifan 02 by Sonoff but I’m trying to get it to work with HASS using the MQTT Fan implementation.
A brief background on the IFan02. It’s a replacement fan controller that enables you to control the fan speed and also toggle the led lights in the fan.
My reason for implementing this in HASS is so that I can control remotely from my mobile phone and in the near future, use Alexa to control the fan.
My current implementation. I created two separate entities: one for the led light control and one for the fan. The LED light control implementation is really straightforward and it works as expected but the fan control is a bit imperfect in my opinion. This is the config.yaml code for the fan:
- platform: mqtt
name: “Bedroom Fan”
The issue I’m facing is that the fan is at either of the 3 speeds (basically in an ON state), the state of the fan entity is always OFF. This means that even if the fan is on, the state of the fan entity in HASS is off BUT the speed of the entity is correct (matches the state MQTT of the fan - LOW, MEDIUM, HIGH). So, what I would like help with is a fix, either to my code implementation in the config.yaml (due to my error) or a change in the code on HASS’ side. I’m not sure how to contribute solving the issue but I can try out solutions offered!