hass-workstation-service icon indicating copy to clipboard operation
hass-workstation-service copied to clipboard

Feature request: Provide current power consumption

Open Jay2645 opened this issue 3 years ago • 3 comments

With Home Assistant's new energy integration, it would be nice if we could have a sensor which reports current power draw that we can hook right in.

This has been done with the open-source Open Hardware Monitor, although I'm not sure how easy it would be to do here.

There is also this random open-source Google Code project I found which uses WMI to access a random Win32_PowerMeter instance located in the root\cimv2\power namespace; however, it doesn't look like there's a way to condense this code into a single query.

Jay2645 avatar Nov 12 '21 11:11 Jay2645

Thanks for creating an issue! We already depend on LibreHardwareMonitor which probably has the same sensors available.

sleevezipper avatar Nov 14 '21 16:11 sleevezipper

I'm curious about the accuracy of a software-based power monitor. If the data isn't coming directly from the power supply, then how would the software know everything in the system is being used. CPUs and GPUs should be pretty easy to monitor. SSDs and HHDs might be capable. The rest of the components on the motherboard and cooling devices I don't think would be possible.

I am mining with two 3070s. The software reports about 220W being used by the GPUs. The energy monitoring plug is reporting 309W being used. The CPU is running about 7% with 32% of 64GB RAM being used. Disk and Network activity is 0% and there are some RGB fans in the case. (Laptop mining with a 2060 is 81W & 106W, respectively.)

dsellers1 avatar Nov 16 '21 08:11 dsellers1

Thanks for creating an issue! We already depend on LibreHardwareMonitor which probably has the same sensors available.

I can confirm that libre hardware monitor can connect to and receive data from my corsair hx1000i PSU

SecretiveShell avatar Nov 16 '21 10:11 SecretiveShell