Live data from Hacker News

Monitoring energy usage with smart plugs, Prometheus and Grafana

ounapuu.ee

1–10 of 190 posts

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

#4

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

Right up until the Home Assistant UI turns into a lagfest, the installation dies, and you can't debug why because Docker. At least that's what happened to me. And no, it wasn't RPi SD power issues. This happened on an otherwise-stable amd64 server.

The Home Assistant authors' hostility towards simple native distributions is now a show stopper for me. Long term reliability is more important than quick initial setup.

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

#6

Yeah, not to mention the ability to automate things. My latest automation: when the white noise machine is on for the baby, the doorbell volume is turned down.

Could you expand on how prometheus or grafana helps you automate? I didn’t know either enabled that.

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

#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.

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

#9
post #5

Missing from the blog. The power reading of the Tosmota device should be calibrated: https://tasmota.github.io/docs/Power-Monitoring-Calibration/

I would love a semi-automated way to generate a power-profile for ESP-Home. Find a smart room heater with 3 levels perhaps, and use home assistant to gather values at "Off", "1/3", "2/3", "3/3", with a downstream power plug as reference (and a known consumption of the downstream plug as well).

So I can just take my EspHome plug and very quickly generate a standard set of mapping values for voltage and wattage.

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

#10
post #7

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

Grafana is a hell of a lot nicer & controllable than HA HA is great, but it's not the answer to everything

Agreed.

I live off grid, so energy monitoring is a big deal for me. HA is fine for “at a glance”, but if I want any kind of detail, I use grafana. I actually have my old openhab instance still running purely as I can’t be faffed setting up all the piping from MQTT into influx again.

It’s also possible to integrate the usage over time using a dynamic time window to get Wh figures from wattage, which is enormously useful for me, and is more accurate than the figures HA gives in their power system.

HA is dead useful for getting alerts when the laundry finishes, though - dumb machine, smart plug, look for a sudden drop in power. Also does all our climate control.

So different tools for different jobs.

Post reply on HN