Is it possible to convert existing pilight codes to rpi_rf codes?

Is it possible to convert existing pilight codes to rpi_rf codes?
I have an existing pilight configuration on a Pi 1 and would like to take it out.
My preferred solution:
Connecting the existing 433mhz sender on my Home-Assistant-Pi. Thats not a problem with the rpi_rf - component. BUT how do I get the codes for this component without manually receiving them again?