I’ve been a user of an EmonPi and separate local EmonCMS install for a long time but have now moved inline smart-capable meters to monitor my headline usage. Mostly for my own benefit for when I need to revisit in the future, I’ve documented what steps I took to get send data into EmonCMS via an existing MQTT broker, and thought I’d share here for posterity:
Personally, I’m currently using openHAB to receive data from my energy system (also over MQTT) and to re-post the value to the appropriate topic for EmonCMS.
I’ve also submitted a PR to support legacy settings files when working with MQTT service, but that hasn’t been approved yet, so you need to manually fix your install if you’re not using the current settings schema.
If an ‘ini’ emoncms settings file exists, the (very) old ‘php’ file should be ignored (it is deprecated).
I suggest you start by stating how you did the emoncms install initially and the hardware it is running on. 99% of installs are on RaspberryOS, so this process is not relevant to them and they could break a perfectly good system by following it.
emoncms consumes MQTT quite happily out of the box on a standard install.