Can power data (watts) come from an external source (MQTT)?

I’m very new to this. I have very frequent power readings coming in as MQTT from existing open source hardware. So I have a bunch of topics like:

/circuit_01/power_watts/
/circuit_01/pf_degrees/
/circuit_01/current_amps/

I’m currently stuffing this data into an influxDB and can use Grafana. What I’m missing is a good way of analyzing the data. Like I want daily/weekly energy usage, for example.

I was eyeing at the emoncms docker container. Does the emoncms provide a mechanism to subscribe to different topics and generate the energy usage charts I see screen shots of?

It does.

I use the wireless relays that are available in the shop on this site to control the immersion heaters (fed by a PV diverter) of my thermal store and buffer store.

I have two emonTH units posting the thermal store temperatures over MQTT to the local emoncms, which then gets re-broadcast out to a Pi subscriber which runs some Python and controls via MQTT and the emoncms broker the wireless relays to determine which, if any, store gets heated.

Currently trying to add MQTT and some control over the solar thermal installation which also heats the stores …

You can do that with Grafana.

If you want weekly energy values, you choose last seven days from the time picker, show, as table from options,
and total from the available value choices. I’ve selected min, max and current as well.
The total (for the week, in this example) is shown in the legend at the botom right of the graph. e.g.

If you want daily energy values for the last 30 days, you can easily get that, too:

60 days? No problem:


You can display any number of days up to the number data points you have stored.
It may not be very readable. but it can be done.

Here’s a year’s worth:

Hovering your mouse over any bar in the graph will show the value of that bar. e.g.

The mouse pointer crosshair is sitting on the 7/9 bar, but the screen capture didn’t pick it up.