Templated purifier from MQTT

I’m using govee2mqtt and I’ve got my purifier setup. I want to turn this into an actual fan/purifier in Home Assistant so I can finally link it with HomeKit (with proper speed control). I think the only options on the current MQTT device that matter are:

  • switch.power_switch: on/off
  • select.mode: Auto, Custom, gearMode
    • must stay on gearMode so I can use number.gearMode below
  • number.gearMode: 1, 2, 3
    • represents sleeping, low, high

I think I need to start with Template fan - Home Assistant but I’m not sure. Some guidance would be great as I’m interested in how to figure this out!

Thanks!