Hampton Bay Fan remote to z-wave

What you’re asking for is a device like this:

In addition to being controlled by an old-school RF remote, the in-canopy receiver has a zigbee module so it can be paired to a zigbee gateway like ST and controlled remotely. There is a community-developed device handler for this device so it does work with ST, but unofficially.

If what @SDKevdog says is true, this may not work for you. It depends on the fan model and whether the fan is designed to work with a receiver that can be removed and replaced by this one. If you have a receiver that works the same way but is hard-wired into the fan motor, then presumably you can’t replace it with this device. I don’t know enough about your fan to comment on that. You should look at the installation manual.