Live data from Hacker News

Monitoring energy usage with smart plugs, Prometheus and Grafana

ounapuu.ee

171–180 of 190 posts

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#171

Hmm, just as a note, at least over here normal electricity companies provide the total level on their web site... no need to install any hardware.

In real time? Mine only gives me a month-to-date, end of month for billing, and month-over-month for the last two years (plus the outside temperature for comparison).

My Danish electricity supplier gives hour-by-hour usage, with the most recent hour being 23-24 yesterday, so I assume it updates at midnight.

I don't know if there's an API or something to get almost-current data.

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#172
post #71

Earlier quoted context omitted.

> How do you know it will continue to function as a circuit breaker and isn't just a piece of wire inside? I don't care. I connected my previous breaker after it.

The fire hazard from the cheap breaker is still present. Your existing one protects the downstream circuit but the Chinese breaker itself is a safety hazard. You should care about the quality of these devices, especially ones that provide safety.

Just a nit: The Chinese breaker isn't providing safety. You should still be caring about its quality because it's handling a lot of current (and potential power).

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#173
post #19

I got a Zigbee power breaker and hooked it up so all my flat's power goes through it, and then made an e-ink display to show my power consumption: https://www.stavros.io/posts/making-the-timeframe/

This guy is funny, I like him. I just bought a $12 annual sub to his project IMGZ. I'm not affiliated at all, if you're thinking this is an elaborate ad.

https://imgz.org/

Hey dude, fix your "open in wallet" button when paying with BTC. The link is janked up.

Otherwise, it works great. See https://imgz.org/iAB4tgaJ/

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#174
post #124
post #67

Earlier quoted context omitted.

This one: https://www.aliexpress.com/item/1005005657383634.html?spm=a2...

It's crazy to run any power through that. Only safe option are current transformers

Do you have any you would recommend? I'll love you for a link, and like you for a brand name. Not being a dick here, I'm genuinely looking for one that I don't have to lose sleep over installing.

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#175

I nerded out on this a few years ago and ended up buying a not well known device called a rainforest automation eagle ( https://www.rainforestautomation.com/rfa-z114-eagle-200-2/ ). Its a pretty straight forward little linux device that reads your smart meter (after being enrolled via your utility). It exposes an xml api that I bridge to Prometheus ( https://github.com/kklipsch/reagle ). I also bridge my utility (Com…

Could you share how do you combine the hourly cost with wattage readings?

kwh x $

Price is generally a dollar figure for 1000W per hour.

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#176

Facetious but half serious reaction: surely grafana usage nullifies any possible benefit from the monitoring? If there is one piece of software regularly using way more resources than seem reasonable it's that one.

Simple fix is to run an extension cord from the neighbors house and use that to host your monitoring equipment.

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#177
post #53

Homeassistant + Power calc ( https://github.com/bramstroker/homeassistant-powercalc ) really does wonder here, you can "simulate" power of fairly stable appliances. Then you chart that in a nice Sankey chart or in standard charts and enjoy

This is a good solution, but I'm having trouble estimating the power draw from charging all my fleshlights daily.

Re: Monitoring energy usage with smart plugs, Prometheus and Grafana

#178
post #76

Surprised there’s not more mention of Shelly monitors in these comments. They’re great for whole house (service entrance) and circuit power monitoring. Pretty open integration, OOTB integration with HA. I think it makes more sense to use “dumb” OTS circuit breakers in your house and augment with add-on monitor than combining the capabilities into a tightly-coupled single device.

I use a dozen of their relays and I am happy with it; for power metering they don't have a great solution, the 3 phase clamp is very expensive and there is no option for more, like Emporia Vue with 8 or 16 sensors. So yes, Shelly is worth mentioning, but not for fine grained power metering.

The deployment model is very different, and within that model, the capabilities are far different. Comparing Shelly's system to Vue really starts with understanding your requirements and long-term automation plans.

I think the key differences are in cloud requirements, control, and granularity. Price appears higher than Vue, though it's not when considering that Shelly is far more capable in all of the above categories.

The Shelly 3EM, which I use for split phase monitoring (in the US) at the meter is $109. That's not bad for its capacity, capability, and build quality. Mine is outdoors though enclosed (necessarily) so endures some pretty extreme temp swings and humidity changes. There is no cloud requirement, and it offers contactor control.

The Vue 2 from Emporia is built for a single indoor panel, provides no control over the circuits, and requires the cloud to operate unless you get out the soldering iron and reflash it with ESPHome, which isn't horrible, but the OOTB cloud requirement is your starting point. (I think that's still the case, but if I'm wrong, happy to be corrected)

For Shelly, their additional clamp solutions are all high-amp (50-100+) so not really designed to be put on individual circuits, especially at $50 per. You might use these on whole panels, breaking your whole house calculation down into zones by panel or monitoring high-amp devices.

If you tried to replicate the Vue with only these devices from Shelly, then yes, it would be an order of magnitude more expensive. But I don't think that's a good way to use them or the right way to replicate the Vue capabilities.

For the high-grained monitoring, it's hand-in-hand with control. Shelly's deployment model for fine-grained resolution is to put power metering down closer to the consuming devices, and with it, a relay for integration into home automation. You can add power metering along with control to outlets, switches, or hard-wired devices in house with things like the 1PM Mini G3 for $13 per.

In this sense, you get far greater granularity than something like the Emporia Vue which can get no higher resolution than a whole circuit. Here again it must be stressed that with Shelly, there's no cloud requirement for that price and you're also getting remote control of the power distribution. On the balance, you're getting far more for your money with this approach.

For my needs, I combine Shelly's approach with some cheaper sonoff/tasmota plugs with power metering for things like the washing machine (alarming mostly). But for more critical devices or always on devices (like freezers), or switched devices like ventilation fans or lights, I think the build quality and deployment model of the Shelly devices is a better fit.

But definitely different target audiences. If the Vue is the right fit, it's the right fit.

Post reply on HN