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:)