This receives and then sends the IR signal’s code via MQTT. That way you can trigger flows with the corresponding code of your choice.
https://kookye.com/2016/12/13/use-nodemcu-and-infrared-receiver-to-send-signal-to-mqtt-client/
A flow to start the cooker hood, could look something like this