I made a fan controller with tasmota. How can I show it in Hass as a fan?

I made a fan controller with tasmota. How can I show it in Hass as a fan?



I think your two options are


or if you need to define separate entites

I use tasmota, and every output is on and off. I don’t know how to solve this problem.

I think you need to describe how your fan works before anyone can help.

This is how I would do it.

Create an input select with modes 1,2,3,4 and a input Boolean as a master on off.
Then I would simply create an automation that would work like this.

Mode 1 selected
Is master input Boolean on?
If yes then turn on fan mode 1
If no then do nothing

For turning the fan off I would just use multiple actions that works like this.
Master input Boolean off
Turn off switches 1,2,3,4

Hope this helps!

What fan controller are you using?

Is it a standard Sonoff Fan controller (iFan02) or did you cobble one together DIY?