Ceiling Fan Percentage to Speed Number

I read the linked topic and it mentions that Alexa understands preset_modes.

Simply template each preset_mode to a corresponding speed. I did this recently when I automated my IR-controllable range fan. Here’s its Template Fan configuration.