─── ❖ ── ✦ ── ❖ ───

Introduction

Here I try to figure out how much electricity is consumed by which device in my homelab, depending on its activity.

Testing setup

For now I’m using two smarthome devices connected to HomeAssistant to collect various metrics:

  • TP-Link HS110, a single-socket WiFi plug, integrated into HA through the β€œtp-link” plugin.
    It’s located in front of the UPS, so it collects the usage of everything (including the UPS) but is offline during a power outage.
  • Nous A5T, a three-socket-outlet which runs Tasmota and reports to HA via MQTT over WiFi.
    It has three 220V sockets which can be individually switched on or off (but the power usage metrics are only collected for the total unit):
    • datengrab, my Unraid server
    • vanadium, my PVE for testing purposes
    • RasPi, a currently unused RaspberryPi 4 (β†’ this will likely change in the future)
    • it also has three USB sockets, that can be toggled on or off as a whole. Currently the server cabinet’s exhaust fan is connected here.

Calculated power draw

Individual devices

DeviceStatePowerComment
vanadiumidle11.1 Wno VM online
vanadiumCPU 17%20.0 W1 of 6 cores run stress-ng
vanadiumCPU 50%34.6 W3 of 6 cores run stress-ng
vanadiumCPU 100%50.7 W6 of 6 cores run stress-ng
datengrabidle (10 HDD spun down)40.0 Wno HDD activity
datengrabidle (10 HDD spun up)91.2 WHDD auto spin-down disabled
datengrabFile Integrity Check55.8 W*1 reading HDD + active Parity
datengrabParity Check87.5 W*8 reading HDD + CPU
ds918zoydefault48.4 Wtypical activity (measured avg. over 9h)
ds918zoy100% load53.6 Wdocker run -it --rm polinux/stress-ng --cpu 4 --io 1 --verbose --timeout 3600
titanidle6.1 Wno VM, ~1.2% of 4 CPU
titandefault8.0 W2 VMs, ~9% of 4 CPU
titanCPU 100%10.2 W4 CPU @ 100% stress-ng --cpu 4 --timeout 150m --metrics-brief
fritzboxdefault?
PoE switch?for WiFi APs
UPSdefault?not charging
RasPi
cer?
Note: * = only tested with HS110, A5T might yield more accurate results

Multiple devices together

DateActive devicesInactive devicesPower (NousA5T)Power (HS110)Comment
2025-01-28UPS, FritzBox, Switches + APs, titan, ds918zoydatengrab, vanadium, RasPi, bernstein-93.1 Waverage over 2.5h

Ideas to improve the testing setup

  • connect ds918zoy to the Nous A5T (instead of the RasPi) to better understand its consumption
  • similarly for titan (only for a short duration, no point in having the ability to turn it off since it’s supposed to run 24/7 anyway)
  • shortly connect titan to another external outlet and switch vanadium, dategrab & ds918zoy off to examine the power draw of UPS, Router and Switches
  • connect bernstein218 to (maybe a new) switchable outlet to wake it if needed? Wake-on-LAN seems to be unreliable
    • or move bernstein218 to a remote location since it’s only supposed to take backups anyway?

Notes on accuracy

  • Test if a power draw of <0.5W is rounded to 0 and if the total usage is updated β†’ requires a device with known low power draw β†’ mobile phone charging brick?
  • For HS110 TP-Link claims 3%-5% accuracy and it itself consumes below 2W.
  • A5T reports with 1W accuracy on its web UI, but only 10W accuracy are shown in HA

─── ❖ ── ✦ ── ❖ ───