Live data from Hacker News

Monitoring energy usage with smart plugs, Prometheus and Grafana

ounapuu.ee

21–30 of 190 posts

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

#21
post #14

Guys what are your favourite smart plug? I need one with easy integration with grafana, not sucking, and shipment to EU country?

I'm a huge fan of https://www.shelly.com/ - they have a built in webserver and can be controlled via POST requests. No cloud needed.

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

#22
post #8

If someone else wants to try this, I strongly recommend against using WiFi for the plugs, instead use Z-Wave or Zigbee. 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.

Not the first time I hear this but I have about 20 ESP devices on my WiFi, almost all of them pushing data regularly and polling for instructions (I don't use HA, but a simpler home made solution) and I have no problem at all.

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

#24
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/

That was a great write up! I wish I had the time to follow-up this guide. Thanks for sharing it!

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

#25
post #24
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/

That was a great write up! I wish I had the time to follow-up this guide. Thanks for sharing it!

Thank you! It's not very hard to use, you basically just flash my firmware and use my script to display images on the Timeframe. That's about it.

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

#26

No need for that mate, just deploy home assistant or something similar and you will get this (and more) out of the box

I'm also looking at a custom solution for my current migration from WiFi sockets to Zigbee. It seemed impossible to do an offline installation of home assistant, and discouraging signs for running it without an internet connection.

There seems to be a sonoff usb stick that might act as a hub and allow command-line monitoring of all devices, should be perfect for feeding into grafana/prometheus.

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

#27
post #23

It's annoying that smart plugs/bulbs etc use wifi when Powerline exists

I have a box of old X10 devices here, one of the most reliable home automation systems I ever set up. I only switched to WiFi when my iobridge X10 controller failed and I couldnt work out the RS232 protocol for a different controller.

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

#28

i'm trying to nudge Grafana into the direction of IoT/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 :) (i work at Grafana Labs)

This would be great. Were using Grafana dashboards for thermal vacuum testing. Everyone is always asking for simple SCADA functionality.

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

#29
You need to be careful with what plugs you choose, though, because they each have, let's say, their own peculiarities.

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'm living in.

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's 260V, while it might just as well be 255V.

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't come back on after the voltage drops.

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

#30

No need for that mate, just deploy home assistant or something similar and you will get this (and more) out of the box

I'm also looking at a custom solution for my current migration from WiFi sockets to Zigbee. It seemed impossible to do an offline installation of home assistant, and discouraging signs for running it without an internet connection. There seems to be a sonoff usb stick that might act as a hub and allow command-line monitoring of all devices, should be perfect for feeding into grafana/prometheus.

HA will happily run offline; if you mean HAOS then I don't know what it does but it's an unorthodox Linux distro, but once it installs it should also run offline without issues. I'm also using their skyconnect zigbee coordinator and it works very well.
Post reply on HN