Can I share emonhub MQTT server and Pi

Daft question time:

  1. Can I…just…configure my heat pump to use the emonhub MQTT server?

This exists in the base installation:

https://docs.openenergymonitor.org/en/latest/emoncms/mqtt.html

This is the heat pump widget that wants an MQTT server for sharing it’s data. It will be on the same network:

Any reason I can’t point it directly at the MQTT server on the emonhub?

It seems…almost so easy that I’m missing something.

Likewise this is the “default viewer” for the MQTT feed:

I assume that trying to install this on the same Pi would be “bad’ and that I should temporarily use another Pi for “view and control” until such a time as I have a better idea / have googled how to share a pi between Home Assistant and Emon?

Yes. You can use the MQTT Broker for any purpose and connect any device to it. Strictly, this is simply the same Broker that emonhub uses, rather than it being ‘emonhub’s server’.

If you want the data to be picked up by your local emoncms, the information needs to be published on the emon base topic.

1 Like

Fantastic; thanks!

I’ll try to have it published to the emon topic by the heat pump. :slight_smile:

Just to note, if it is nested JSON and especially an array, it may not work directly. Using another MQTT Client to see what exactly is published will help.

I process a lot of my incoming data using Node-RED first so it is just a set of key:value pairs.