NUT UPS data from Qnap TS253e, how to get power consumption

HI all,
i have an ups Smart-UPS 1500 by American Power Conversion (APC) connect with usb to my NAS Qnap.

In my homeassistant (inside the qnap but not connected to the vm) i get values from QNAP with Network UPS Tools (NUT) and i get many values as timings, battery volts, status etc but NOT power or current, so i cannot add the qnap as energy device to monitor enery consuption.

There is a way to do it ? i did something wrong ?

thanks
marco

Does QNAP have sensors for current or power? NUT? If not, how are you going to collect these statistics without additional equipment?

I also didn’t have power nor current, but I did have a load [%].

So, knowing the maximum power [450W] it could deliver, I created a helper

{{((states("sensor.myups_load") | int / 100) * 450) | round(0)}}

Which calculates the (approximate) power consumption…

2 Likes

Sure it’s in Watt?
Typically, UPSes indicates VA rather than W, which is not quite the same. You would have to apply a “power factor” to have a more precise approximation…

1 Like

Right you are; i forgot i already applied a power factor (because it is actually 500VA)
But I looked it up, and that is still too high apparently…a power factor of 0.6 would be more realistic

{{((states("sensor.myups_load") | int / 100) * (500*0.6) | round(0)}}
1 Like

Yeah, the power factor is not linear, actually.
I have this, but it has been so long I don’t remember how I came up with it :wink:

    - name: "Eaton 3S Power"
      unique_id: "easton_3s_power"
      unit_of_measurement: "W"
      state: >
        {% set load = states("sensor.eaton3s_load") | float(0) %}
        {% if load < 15 %}
        {{ (load * 6.5 * 0.45) | round(1) }}
        {% elif load < 25 %}
        {{ (load * 6.5 * 0.52) | round(1) }}
        {% else %}
        {{ (load * 6.5 * 0.60) | round(1) }}
        {% endif %}      
      device_class: power
      state_class: measurement
      availability: "{{ states('sensor.eaton3s_load') | is_number }}"
1 Like

Actually… I measured it with a kWh meter, and was surprised to see the formula was wrong :scream:….

So going back to the manual again, and turns out I have the 750VA model (and not the 500VA), which also states 450W in the manual :laughing:

So my original formula was correct with a power factor of 0.6 :wink:

750 * 0.6 = 450 Watt

1 Like