MQTT - Using Mosquitto in HASSIO plus another broker?

I’m a novice when it comes to MQTT and hoped someone could point me in the right direction.

I have the Mosquitto Broker installed and working on Hassio. I have a number of sensors displaying data from the broker and I’m happy with it.

I have an energy monitoring device in my power meter box that outputs MQTT data that I would like to display as two sensors in HA. I do not have access to change or configure this device.

If I open a browser and navigate to http://192.168.0.145:8080/#/mqtt it outputs the following stream of data…

1586258105: /sensor/935049fff719c85cb3154cd64971b175/gauge ~> [1586258105,0,“W”]
1586258105: /sensor/89eb82d859bdfa8a7884ca6fa798ed14/gauge ~> [1586258105,1018,“W”]
1586258104: /sensor/935049fff719c85cb3154cd64971b175/gauge ~> [1586258104,0,“W”]
1586258104: /sensor/89eb82d859bdfa8a7884ca6fa798ed14/gauge ~> [1586258104,1011,“W”]

The first value is solar generation and the second value is energy consumption. (Watts)

Can anyone guide me on how I can take this stream (MQTT) and use it to create two sensors in HA?

I hope I have used the correct terms above :wink:

Thanks
Anthony

You can create a mqtt bridge to get the data in your broker.

Hi francisp,

Do you know if a bridge can be created if you only have the ability to configure one side?
Can I create the bridge using only Mosquitto installed on Hassio?

Thanks

Anthony

Yes you only have to configure one side. See here for instructions:

http://www.steves-internet-guide.com/mosquitto-bridge-configuration/

Awesome! Thanks for the link tom_l