I have created a SNMP sensor to grab wattage figures from my PDU for kubernetes nodes in a cluster. This works great. I wanted to display this on the energy dashboard, so after screwing around with various ways of trying to make the sensor work, including adding a statistics sensor, I decided to use utility meter plugin, since it is supposed to show up. I have other utility meter sensors that DO show up as available in the list, but for some reason, the ones created for monitoring consumption from the PDU do not. Am i missing something here?
i have it set up as an hourly sensor, just like the ones i use for monitoring my various tariff usage sensors, so not sure whats different about this.
I just noticed, that the unit of measurement is “kWH”, not “kWh”. is it THAT sensitive? proceeding on, this (and others like it) grab the kWh measurement from the PDU. I then have a utility meter set up like this:
One last question, while I let this start collecting fresh data. I do notice that I have another sensor that DOES show up, but it’s a template sensor that feeds the utility meter. Is having a “device_class: energy” mandatory as well? here’s the two snmp sensors + template that DO work:
If the “device_classs: energy” is required, i can add a template sensor for the other sensors. I just did this one special as I’m grabbing the wattage figures for two power supplies.
so it looks like it has all those values, just my fat fingering on the kWH vs kWh messed things up. I’ll report back in the morning if it works =) Thanks for your assistance!
edit: LIGHTBULB! I see. I DO need to either add device_class to the snmp sensor, or add a template sensor between it and the utility meter. I’ll try the device_class first.