Once you captured your code you can try to emit them by publishing the following MQTT topic into mosquitto: mosquitto_pub -t home/commands/sendNEC -m 99999999
99999999 = the captured code value
If it is working the next step is the HA integration.
Here are some example that you have to adapt to the IR topic