MQTT & Shelly - How to (please)


I’d be most grateful for any advice on how I can have my emonhub (emonSD on a Pi-v3) read a Shelly (Pro4PM, in this specific case).

I’ve configured the Shell’s mqtt as follows:
MQTT PREFIX: emon/shellypro4pm-1-cu2
Server: [IP of emonCMS]
Client ID: shellypro4pm-1-cu2
Username / Password: default emonHUB information.

The Inputs being picked up are:

Using MQTT Explorer, I can see 2 topics (online & events_rpc), and messages being sent.

And here’s the message from “events_rpc”:


I’m out of my depth here, so any “mqtt/emonhub/shelly-4-dummies” pointers would be welcome.

Thanks in advance


As the mqtt topic format of the shelly is not compatible with the emonhub, you will have to use some intermediate “translator”.

I am using Node Red. It reads from the Shelly and publishes a new, simplified mqtt topic for emonhub.

1 Like

Thanks for the pointers.

Oh dear. It seems another “4-dummies” is needed.

Thanks again, though.

If you search this forum for “Node Red mqtt shelly” you will find examples for that part, although for older Shelly devices.
For Node Red you need another computer to run as the software. The Pi running the emoncms software is not designed for this task.