How do you control ceiling fan speed with a Steam Deck?

How do you control ceiling fan speed with a Steam Deck?

I used this tutorial video (Control Your House with a Stream Deck // Home Assistant API - YouTube) to add, and operate, the light on my fan, but I would like to know how to control the speed.

Any help is much appreciated.