Hi,
I am would like to work with you in this project. I do have both ESP32 as well as ESP8266 with me and also RPi B+ and RPi3 board. I also have PIR, temp. sensor, relay switches with me. I have also worked at MQTT protocol, for all different devices and programming languages, C, Java, NodeJS, Lua. I understand MQTT at broker as well as client end and can build this application for you. I do well understand your requirement to scan IR code and to save and then to generate same control. This job I can do within 3 days if selected today. I can even work on scaling up your application in future as next project. Looking forward for further communications. Regards.!!