I have got some issues integrating my ups (at least one, maybe two) into openhab.
I found the networkupstools-binding and installed it… and configured it. But the wiki for it is quite incomplete
What does the nut use to get the data? The http-interface of the network-card of my ups? What else?!
The networkupstools.cfg:
# Refresh interval for state updates in milliseconds (optional)
refresh=60000
# UPS device name
ups1.device=APCX750
# UPS server hostname (optional)
ups1.host=[...]
# UPS server port (optional)
ups1.port=80
# UPS server login (optional)
ups1.login=readonly
# UPS server pass (optional)
ups1.pass=[...]
If i configure it to port 80 is successfully connects (at least he doesnt tell me anything else).
But in my log-files he tells me:
2017-07-05 14:21:26.040 [ERROR] [ools.internal.NetworkUpsToolsBinding] - Nut processing error
java.lang.NullPointerException
My items:
String Ups_Status "UPS status [%s]" { networkupstools="ups1:APCX750.status" }
Number Ups_Load "UPS output voltage [%.1f V]" { networkupstools="ups1:APCX750.load" }
I maybe wrong (since I still !$%^@# don’t have a UPS at my home… big mistake )
but I believe that you need to have the Network UPS Tools (NUT) installed first.
Afterwards, the Network UPS Tools Binding will connect to the NUT upsd server (which in turn, connects via serial, USB or IP to the UPS device) and pull the required info.
Notes: Use code fences to post configs
config data go here
Also, mention the openHAB release that you are using and if possible, the version of the binding.
Sorry - luckily this is the beginners-area, so no one will be too angry for those fails Well: Codesfences are placed… And its OH2.1
… and thats my problem: There is no documentation… What is “UPS server hostname”… sounds for me like the ip of my ups. Not like the ip of the nut-server, which connects to the ups.
But I dont know
Anyone got this running and my help me a bit?
You are right… the documentation is poor for this binding (most likely because it assumes that people will have deployed the NUTs server in advance… ). It’s not even clear to me that my assumption is correct… I believe that it is.
I will order now my new APC ups with USB connection and hopefully try to type up an improved version of the docs entry
Do you have a AP9630 (UPS Network Management Card 2) installed on the SMX750 (APC Smart-UPS X 750VA) ? It looks like it is supported by NUTS.
It looks like a good model… also rack mountable… I may go for the same