I achieve this via esphome now, see here:
- https://github.com/seanauff/esphome-devices/blob/master/remote_codes.md
- https://github.com/seanauff/esphome-devices/blob/master/rf_gateway.yaml
Remote control 304 MHz RF fans via MQTT
I used a generic 315 MHz TX module, and replaced the resonator with a 304 MHz one.