I have a pump with an optional PWM input connected to ESP via ESPHome. I used Speed fan as a choice of component as it should give me a way to turn off and on via Relay + set speed via PWM pin.
The pump has special function which I would like to preserve. When the PWM signal is 0, the pump returns to preconfigured state - keeping the constant rate of flow.
The problem is, when I set the speed percentage on a fan card to 0% it automatically turns the fan off.
I did set up
on_turn_off: then: output.turn_off: relay_2
option to be able to turn off and on the relay when turning off and on the fan…
Is there a better way of controlling such device? Or making the Speed fan not turned off when speed percentage is set to 0?