Live data from Hacker News

Monitoring energy usage with smart plugs, Prometheus and Grafana

ounapuu.ee

11–20 of 190 posts

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

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

Seconded - HA's graphs are great for a simple "is this going up or down" glance but when you want to put a whole bunch of things together for comparison or perform aggregations or calculations, that's when you want Grafana et al.

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

#12

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.

HA is actually pretty debuggable. Just install the SSH plugin, then SSH into the HA box, and then simply "docker exec" into the target HA container.

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

#15
post #12

Earlier quoted context omitted.

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.

HA is actually pretty debuggable. Just install the SSH plugin, then SSH into the HA box, and then simply "docker exec" into the target HA container.

... and then not have any of your usual development tools, environment, system layout, or repair techniques because you're inside someone else's "works on my system" that they threw over the wall.

It's obviously possible to debug what goes on inside a Docker image. It's just not something I'm particularly interested in dealing with, especially under duress.

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

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

Why not both? You’ll need to run a server either way.

HA can export data to Prometheus. Setting up and running HA is much easier than figuring out how to get a set of different smart devices to export metrics to Prometheus/Influx. Let HA deal with that.

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

#17
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)

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

#20

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.

I think this was supposed to be a reply to one of the Home Assistant threads
Post reply on HN