sleevezipper / hass-workstation-service

Provide useful sensors and services from your workstation to Home Assistant.
Apache License 2.0
613 stars 54 forks source link

Feature request: Provide current power consumption #127

Open Jay2645 opened 2 years ago

Jay2645 commented 2 years ago

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.

sleevezipper commented 2 years ago

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

dsellers1 commented 2 years ago

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

SecretiveShell commented 2 years ago

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