OpenEnergyMonitor Community

How to integrate Shelly 3EM in Emoncms local?

It is a theoretical question at the moment as I don’t have an emoncms server running.
But I plan to run one as I would also like to monitor my other 3-phase input running on another tariff for my heatpump.

I have a Shelly 3EM for monitoring my 3-phase house input (and solar output) connection.
What would be the way to get the data from the Shelly device to Emoncms?

The Shelly has a REST API where you can query the measurements.
If I disable the cloud access, it also has MQTT, although probably not in the format Emonhub is expecting data.

I was thinking of something simple in Node Red. It would query the Shelly REST API and in the same flow commit the data to Emoncms with HTTP.

Could this be working? Did somebody manage something like this already?

I don’t have a 3EM, but I do have a 1PM. I use Node-RED to convert the MQTT from the Shelly to an emon/shellies-topic for emoncms.

Thank you very much!

It seems like a good solution and I am happy to hear, that it is already working.
The firmware of EM and 3EM should not be that much different from this point of view.