Rpi for Nodered and MQTT

Hi everybody!

I just configured a MQTT broker on a docker image, running on a Raspberry Pi Zero W, part of a project that I'm developing:

To be sure that everything is working fine with the MQTT broker, I'd like to capture, at the HE, data sent from a Tasmota device (through MQTT) and routed through the RPi. Like this:

  • Tasmota device ==> MQTT broker ==> HE

and, of course (and obviously), send commands all the way back, from the HE to the Tasmota device:

  • HE ==> MQTT broker ==> Tasmota device

I did some research and, if I'm not wrong, I cound't find a solution for the HE that do both ways, send and receive data/commands at the HE, meaning, having a Tasmota device mapped at the HE using a MQTT broker as a man-in-the-middle.

Am I wrong?

Thanks in advance!