NUT (Network UPS Tools) binding problem

Hello, colleagues.

I have WorkStation : Debian 8, with nut 2.7.3 and openhab 1.7.1. NUT’s setting have been set normal, by official manual, and upsc command return good information.
When I try to make connect between nut and openhab, I see in log this :

NetworkUpsTools binding has been started.
Oct 27 15:56:28 DebTest openhab.sh[2034]: 15:56:28.234 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘UPS_Status (Type=StringItem, State=Uninitialized)’ with ‘NetworkUpsToolsGenericBindingProvider’ reader.
Oct 27 15:56:28 DebTest openhab.sh[2034]: 15:56:28.235 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘UPS_Voltage (Type=NumberItem, State=Uninitialized)’ with ‘NetworkUpsToolsGenericBindingProvider’ reader.

But if I use upsc :

# upsc eaton9130@localhost ups.status
OL
# upsc eaton9130@localhost output.voltage
229.0

I don’t understand, why State isn’t initialized? Can I do something wrong, maybe?

my openhab.config:

Refresh interval for state updates in milliseconds (optional)
networkupstools:ups:refresh=60000

UPS device name
networkupstools:ups.device=eaton9130

UPS server hostname (optional)
networkupstools:ups.host=localhost

UPS server port (optional)
networkupstools:ups.port=3493

UPS server login (optional)
networkupstools:ups.login=admin

UPS server pass (optional)
networkupstools:ups.pass= pass

nut.items:

Group UPS

String UPS_Status “UPS status [%s]” (UPS) {networkupstools=“ups:ups.status”}
Number UPS_Voltage “UPS Voltage [%.1f V]” (UPS) {networkupstools=“ups:output.voltage”}

nut.sitemap:

sitemap nut label=“UPS Monitor”
Frame label=“Equipments” {
Text item=UPS_Status icon=“energy”
Texct item=UPS_Voltage icon=“energy”
}

Thank you in advance!

P.S. Sorry for my English:)

Have nobody faced such problem? or did I do something wrong in config?

I’ve founded the solution:

In fact, openhab.cfg contains wrong config about NUT by default.
in string

Refresh interval for state updates in milliseconds (optional)
networkupstools:**ups:**refresh=60000 -

but, in Wiki we’ll see :

Refresh interval for state updates in milliseconds (optional)
networkupstools:refresh=60000

Last strings is without :ups: and it’s right. My items came initialize after I’ve deleted :ups: form openhab.cfg

Be careful!

Submitted #3393 to fix this mistake in openhab_default.cfg. Thanks to @madclog for submitting issue #3392 about it.

Thanks for the post with the solution. Worked for me too.

That’s the second bit of help from the forum where I’ve had to correct the default openhab.cfg!