I’m using OpenMQTTgateway as a bridge in both way’s.
A really good project with all you need - wiring - code - openHAB integration.
It can even get extended with a BLE and/or a RF module.
There is a Topic in openHAB community too - ESP8266 based 433mhz & IR gateway bidirectional with MQTT --> OpenMQTTGateway