iFan04 speed entity

I have an iFan04 integrated into Home Assistant. While I can view its status and manually adjust its speed, when I try to create an automation for it, I’m only presented with the option to turn it on or off. I don’t seem to have individual entities for each speed level.

Is there a way to control its speed within an automation?

you need to use the “fan.set_percentage” service on the “fan.x” entity.