TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Monitoring energy usage with smart plugs, Prometheus and Grafana

354 点作者 hddherman大约 1 年前

21 条评论

stavros大约 1 年前
I got a Zigbee power breaker and hooked it up so all my flat&#x27;s power goes through it, and then made an e-ink display to show my power consumption:<p><a href="https:&#x2F;&#x2F;www.stavros.io&#x2F;posts&#x2F;making-the-timeframe&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.stavros.io&#x2F;posts&#x2F;making-the-timeframe&#x2F;</a>
评论 #40271773 未加载
评论 #40268555 未加载
评论 #40267509 未加载
评论 #40277928 未加载
评论 #40267972 未加载
评论 #40267967 未加载
kasey_junk大约 1 年前
I nerded out on this a few years ago and ended up buying a not well known device called a rainforest automation eagle (<a href="https:&#x2F;&#x2F;www.rainforestautomation.com&#x2F;rfa-z114-eagle-200-2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.rainforestautomation.com&#x2F;rfa-z114-eagle-200-2&#x2F;</a>). 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 (<a href="https:&#x2F;&#x2F;github.com&#x2F;kklipsch&#x2F;reagle">https:&#x2F;&#x2F;github.com&#x2F;kklipsch&#x2F;reagle</a>).<p>I also bridge my utility (ComEd&#x27;s) pricing feed to prometheus (<a href="https:&#x2F;&#x2F;github.com&#x2F;kklipsch&#x2F;comed_exporter">https:&#x2F;&#x2F;github.com&#x2F;kklipsch&#x2F;comed_exporter</a>). Between those 2 I get pretty good whole home utilization and pricing info graphed into Prometheus (and thus into Grafana).
评论 #40274279 未加载
recursinging大约 1 年前
One step further. I just installed the Emporia Vue 2 in my distribution box. 16 CTs plus the three mains phases. It&#x27;s ESP32 based and there is a great ESPHome project that you can flash it with for local only reporting. Add some HA and VictoriaMetrics, and now I can see how the whole house behaves with Grafana. Next up, Zero-Export using this data to steer my little OpenDTU solar plant. We live in such cool times!
评论 #40267973 未加载
评论 #40267918 未加载
评论 #40285266 未加载
评论 #40270334 未加载
评论 #40267853 未加载
sponaugle大约 1 年前
I used IoTaWatt devices, which can be installed in panels. It is a great solution for by circuit monitoring, and has direct influxdb integration so you can use Grafana.<p>Per plug monitoring is cool however for getting specific devices on a circuit.<p>(Short video about the setup: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-tcbJCvuJG8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-tcbJCvuJG8</a>)
评论 #40268479 未加载
评论 #40270271 未加载
richardjennings大约 1 年前
I scrape power usage metrics from Tapo P110s and push them to Grafana Cloud using <a href="https:&#x2F;&#x2F;github.com&#x2F;richardjennings&#x2F;tapmon">https:&#x2F;&#x2F;github.com&#x2F;richardjennings&#x2F;tapmon</a> - although as other commenters have noted - using Wifi for smart plugs has its rough edges.
评论 #40267834 未加载
leeoniya大约 1 年前
i&#x27;m trying to nudge Grafana into the direction of IoT&#x2F;SCADA control, so we can be both, a great way to viz (data sources) and to control (data sinks). not personally a huge fan of having to recommend Home Assistant for that use case :)<p>(i work at Grafana Labs)
评论 #40268857 未加载
评论 #40267691 未加载
评论 #40268145 未加载
fidotron大约 1 年前
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&#x27;s that one.
评论 #40276050 未加载
评论 #40278521 未加载
123pie123大约 1 年前
i&#x27;ve just bought a cheap esp32 with a light sensor connected to it. then connected light sensor (ie bluetac) to my electicity meter that pulses every 1&#x2F;1000 1KW&#x2F;Hr, it uploads the data to google sheets which graphs the output - works great<p>I also have another esp32 at my elderly relatives house with a pir sensor connected to it, it&#x27;s also sending the movement data to a different sheet on the google sheets site, so that i can monitor some sort of movement.<p>i&#x27;m i expecting google to discontinue this service at anytime - yes, but its working for now. you can write and read data from the google sheets via json via the esp32, not very inutitive but doable (and free!!)
评论 #40268047 未加载
评论 #40267922 未加载
aksss大约 1 年前
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.<p>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.
评论 #40273064 未加载
Xerox9213大约 1 年前
Yeah, not to mention the ability to automate things.<p>My latest automation: when the white noise machine is on for the baby, the doorbell volume is turned down.
评论 #40267205 未加载
dsab大约 1 年前
Guys what are your favourite smart plug? I need one with easy integration with grafana, not sucking, and shipment to EU country?
评论 #40267465 未加载
评论 #40267744 未加载
评论 #40267736 未加载
评论 #40267430 未加载
评论 #40268176 未加载
评论 #40273209 未加载
评论 #40268541 未加载
评论 #40273777 未加载
评论 #40272795 未加载
评论 #40268042 未加载
eMerzh大约 1 年前
Homeassistant + Power calc (<a href="https:&#x2F;&#x2F;github.com&#x2F;bramstroker&#x2F;homeassistant-powercalc">https:&#x2F;&#x2F;github.com&#x2F;bramstroker&#x2F;homeassistant-powercalc</a>) really does wonder here,<p>you can &quot;simulate&quot; power of fairly stable appliances.<p>Then you chart that in a nice Sankey chart or in standard charts and enjoy
评论 #40278535 未加载
holri大约 1 年前
Missing from the blog. The power reading of the Tosmota device should be calibrated: <a href="https:&#x2F;&#x2F;tasmota.github.io&#x2F;docs&#x2F;Power-Monitoring-Calibration&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tasmota.github.io&#x2F;docs&#x2F;Power-Monitoring-Calibration&#x2F;</a>
评论 #40267244 未加载
评论 #40273220 未加载
VyseofArcadia大约 1 年前
I&#x27;m really impressed to see the home server power consumption in the article. I always sort of expect these things to end with, &quot;it turns out I could save even more power by not having a home server&quot;.
dainiusse大约 1 年前
No need for that mate, just deploy home assistant or something similar and you will get this (and more) out of the box
评论 #40267223 未加载
评论 #40267171 未加载
评论 #40267640 未加载
评论 #40267316 未加载
lucascacho大约 1 年前
Just last week I was geeking out at Jeff Gluon&#x27;s home lab implementation, and he released a nice video walking through his power monitor, which also uses Grafana.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-tcbJCvuJG8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-tcbJCvuJG8</a>
WesolyKubeczek大约 1 年前
You need to be careful with what plugs you choose, though, because they each have, let&#x27;s say, their own peculiarities.<p>For instance, their overvoltage protection might not align well with what the local regulations say. For example, in my region of EU, the upper voltage tolerances are such that 264V must trigger an instant poweroff, and also anything producing power must shut off if the average voltage over the last 10 minutes was 253V or more. However, TuYa sockets which pretty much are the only in-wall variety I was able to find on the local market, shut off at 260V. This tends to be somewhat problematic in an area saturated with PV installations, like the one I&#x27;m living in.<p>This problem is compounded by the fact that the reported measurements of sockets sitting on the same phase tend to differ quite a bit. Some sockets tend to overstate the voltage compared to neighboring sockets sitting on the same wires. Thus, they shut off when they think it&#x27;s 260V, while it might just as well be 255V.<p>Just saying that if you put lots of those in your walls, you might suddenly find yourself in a need to prepare some automations to try and bring the sockets on once the voltage is back to normal. This particular variety of sockets won&#x27;t come back on after the voltage drops.
评论 #40267785 未加载
Gravityloss大约 1 年前
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.
评论 #40274089 未加载
ars大约 1 年前
If someone else wants to try this, I strongly recommend against using WiFi for the plugs, instead use Z-Wave or Zigbee.<p>Wifi is just not meant for this use case, it will be unhappy if you start adding a lot of devices, and it will slow down your main use of WiFi for your phone.
评论 #40267474 未加载
ryall大约 1 年前
It&#x27;s annoying that smart plugs&#x2F;bulbs etc use wifi when Powerline exists
评论 #40267823 未加载
评论 #40267679 未加载
killme2008大约 1 年前
It&#x27;s interesting and cool! Looks like the software stack is still running on the local server.<p>Looking for Prometheus and Grafana on the cloud? Check out GreptimeCloud! <a href="https:&#x2F;&#x2F;greptime.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;greptime.com&#x2F;</a>