My CyberPower UPS units don't report power or energy consumption to NUT, which is connected to Home Assistant.

But they do report nominal power and load percentage, so I created 2 helper sensors: one that multiplies the load by the nominal power to get power consumption, and then an integral one on the power.

The template helper looks like this: `{{ (states('sensor.cp1500_load') | float(0) / 100 * states('sensor.cp1500_nominal_real_power') | float(0)) | round(1) }}`

Suddenly, the picture of what's drawing from the house batter becomes clearer.

#HomeAssistant #UPS #Solar

@xconde Huh... I guess I got lucky, because my CP1000PFCLCDa seems to send pretty much everything over to my PeaNUT LXC.

[cyberpower]
driver = usbhid-ups
port = auto
pollinterval = 15
offdelay = 60
desc = "CyberPower-CP1000PFCLCDa"

@RxBrad Jelly! This is what I get (Energy and Power being the helpers I created).

[qnapups]
driver = usbhid-ups
port = /dev/ttyS1

and see alt text for output of `upsc qnapups` (ironically the content doesn't fit in the message limit for my server, but it does fit in the alt text description wheeee)

@RxBrad The little one is similar.

root@nut_jail:~ # upsc CP1500@localhost
...
driver.version: 2.8.4
driver.version.data: CyberPower HID 0.84
input.transfer.high: 0
input.transfer.low: 0
input.voltage: 238.0
input.voltage.nominal: 230
output.voltage: 239.0
ups.beeper.status: enabled
ups.delay.shutdown: 60
ups.delay.start: 120
ups.firmware: O2.x
ups.load: 12
ups.mfr: CPS
ups.model: BR700ELCD
ups.power.nominal: 700
ups.productid: 0501
ups.realpower.nominal: 420
ups.status: OL

@xconde Here's what I've got (also in the Alt Text, cuz apparently people write novels there...)

@RxBrad your output doesn't have the load in W either. But I can see the load % (9) and the nominal power (600). At 9*600/100, we have 54W, which is pretty close to the 48W in the dashboard.

I suspect PeaNUT might be calculating this for you.

@xconde You know what, you're right.