You might want to take a look at this project I created for my IoT students.
I reckon you could modify it to match your needs.
It uses a Wemos D1 Mini to handle the IR side of things and then send an MQTT message to RPi-3+ running Node-RED.
I've used Telegram to send messages to my mobile phone as the implementation is very easy.