Community
OpenEnergyMonitor

Community

How many places in emonpi/emonsd are MQTT broker settings defined?

mqttbroker
Tags: #<Tag:0x00007f1bedd2c318>

(Peter Galbavy) #1

My home automation is getting busy. I would like to migrate my MQTT broker to a more central (read UPS etc.) server.

On my emonpi/emonsd install, apart from the settings in emonhub config (and node red for now, until that moves too) are there any other places I have to update the MQTT client details ?


(Brian Orpin) #2

You’ve found the emonhub setting.

I note you say client i.e. the system that is subscribing or publishing and that system will need the broker settings (the broker does not care).

The emonpi has it’s own broker at present if you use the prebuilt image I believe. You can check - on the admin page it will list the MQTT Host (it actually means broker) IP. If this is the same as the emoncms IP it is the emonpi broker.

This value is set in the settings.php file and that address is used for both publishing and subscribing.

I’d suggest disabling the mosquitto broker on the emonpi if you are not going to use it.

HTH