Best way to model an Air Purifier controlled via IR Remote (with known codes)

Hi all,
So I have a dumb air purifier that has an IR port.
I was able to find a zigbee based IR controller and I’ve identified the codes to control the air purifier.
I have the codes for
OFF
Speed 1
Speed 2
Speed 3

What would be the best way to represent this in Home Assistant backend and Dashboards (short of writing my own integration).

I was thinking of maybe creating a Dropdown and then using some kind of script to control it. But is there a better way to represent this in my configurations and also in my dashboards?

Thanks very much!

UPDATE : it seems maybe this could be a good solution but still looking forward for ideas Template fan - Home Assistant