NUT component resources validation error

Hi
I am trying to setup the NUT UPS component.
On the machine where the UPS is connect I have the following data:

[root@server ~]# upsc openups@localhost
battery.capacity: 100
battery.charge: 100
battery.charge.low: 5
battery.charge.warning: 20
battery.current: 0.010
battery.mfr.date:
battery.runtime: 3932100
battery.temperature: 38.10
battery.type:
battery.voltage: 13.48
device.mfr: Mini-Box.Com
device.model: OPEN-UPS
device.serial: PBSO4-LiFePO
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: openUPS HID 0.4
driver.version.internal: 0.41
input.current: 0.019
input.voltage: 15.21
output.current: 1.402
output.voltage: 12.57
ups.mfr: Mini-Box.Com
ups.model: OPEN-UPS
ups.productid: d004
ups.serial: PBSO4-LiFePO
ups.status: OL CHRG
ups.vendorid: 04d8

The problem is that not all the items above can be added in the HA configuration.
I can add input.voltage, battery.voltage, battery.temperature and some other values.
But when I try to add for example output.current and output.voltage the following error is thrown:

2018-02-07 09:37:17 ERROR (MainThread) [homeassistant.config] Invalid config for [sensor.nut]: value is not allowed @ data['resources'][4]. Got 'output.voltage'. 

output.voltage is valid data from the nut server so it should be allowed by HA configuration.

1 Like

Yes, it will be great to include output.voltage and input.frequency vars support.

output.voltage isn’t in the component. Im guessing it would just need to be added.

https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/sensor/nut.py