Skip to content

Commit 29cfb81

Browse files
authored
Merge pull request #57 from air5551/master
Liebert PSI5-800RT120
2 parents 5a0a432 + 7932c70 commit 29cfb81

2 files changed

Lines changed: 93 additions & 4 deletions

File tree

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Please add if relevant: DEVICE:URL:REPORT: <GitHub issue/PR or Mailing list archive entry URL>
2+
# DEVICE:URL:VENDOR: https://www.vertiv.com/en-us/products-catalog/critical-power/uninterruptible-power-supplies-ups/psi5-800rt120/
3+
4+
# Please add comments for humans here and perhaps raise concerns about the data points,
5+
# see https://networkupstools.org/ddl/#devseq-files for comment-tag syntax
6+
# strip sensitive data (passwords, SNMP community, serial number, IP address, host name...)
7+
# and post as a pull request to https://github.com/networkupstools/nut-ddl/
8+
9+
# DEVICE:COMMENT-BLOCK:UPSCONF:
10+
# > There is a temprature sensor inside this UPS but its not reported here
11+
# [UPS]
12+
# driver = "usbhid-ups"
13+
# port = "auto"
14+
# vendorid = "10AF"
15+
# productid = "0002"
16+
# product = "Liebert PSI5"
17+
# vendor = "Vertiv Co."
18+
# ### These are the most important parameters
19+
# ### Otherwise the UPS reports OB and no Battery %
20+
# usb_hid_rep_index = 1
21+
# usb_hid_desc_index = 1
22+
# pollonly = 1
23+
# ### Optional:
24+
# # bus = "001"
25+
# # device = "002"
26+
# # busport = "001"
27+
# DEVICE:EOC
28+
29+
# :; upsc UPS
30+
battery.capacity: 800
31+
battery.charge: 100
32+
battery.charge.warning: 20
33+
battery.runtime: 12600
34+
battery.type: PbAc
35+
battery.voltage: 27.3
36+
battery.voltage.nominal: 24
37+
device.mfr: Vertiv Co.
38+
device.model: Liebert PSI5
39+
device.serial: [REDACTED]
40+
device.type: ups
41+
driver.debug: 0
42+
driver.flag.allow_killpower: 0
43+
driver.name: usbhid-ups
44+
driver.parameter.pollfreq: 30
45+
driver.parameter.pollinterval: 2
46+
driver.parameter.port: auto
47+
driver.parameter.product: Liebert PSI5
48+
driver.parameter.productid: 0002
49+
driver.parameter.serial: [REDACTED]
50+
driver.parameter.synchronous: auto
51+
driver.parameter.usb_hid_desc_index: 1
52+
driver.parameter.usb_hid_rep_index: 1
53+
driver.parameter.pollonly: 1 #COMMENT: If it is not set, the driver may crash or have some odd error
54+
driver.parameter.vendor: Vertiv Co.
55+
driver.parameter.vendorid: 10AF
56+
driver.state: quiet
57+
driver.version: 2.8.2.1
58+
driver.version.data: Belkin/Liebert HID 0.21
59+
driver.version.internal: 0.54
60+
driver.version.usb: libusb-1.0.28 (API: 0x100010a)
61+
input.frequency: 60.0
62+
input.voltage: 121.4
63+
input.voltage.nominal: 120
64+
output.frequency: 60.0
65+
output.voltage: 121.5
66+
output.voltage.nominal: 120
67+
ups.load: 6
68+
ups.mfr: Vertiv Co.
69+
ups.model: Liebert PSI5
70+
ups.productid: 0002
71+
ups.serial: [REDACTED]
72+
ups.status: OL CHRG
73+
ups.vendorid: 10af
74+
75+
# DEVICE:COMMENT-BLOCK:FIXME:UPSRW: UPS
76+
# [driver.debug]
77+
# Current debug verbosity level of the driver program
78+
# Type: NUMBER
79+
# Value: 0
80+
#
81+
# [driver.flag.allow_killpower]
82+
# Safety flip-switch to allow the driver daemon to send UPS shutdown command (accessible via driver.killpower)
83+
# This is NOT tested, Use at your own Risk
84+
# Type: NUMBER
85+
# Value: 0
86+
# DEVICE:EOC
87+

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,25 @@ check-content-markup:
4040
find . -type f -name '*.dev' | ( \
4141
echo "`date -u`: Sanity-checking the *.dev files..." >&2 ; \
4242
if [ -x $(NUT_WEBSITE_DIR)/tools/nut-ddl.py ] ; then \
43-
echo "`date -u`: will use $(NUT_DDL_PYTHON) $(NUT_WEBSITE_DIR)/tools/nut-ddl.py for deeper checks" >&2 ; \
43+
echo "`date -u`: Will use $(NUT_DDL_PYTHON) $(NUT_WEBSITE_DIR)/tools/nut-ddl.py for deeper checks" >&2 ; \
4444
fi ; \
4545
FAILED=""; \
4646
PASSED=""; \
47+
WORSTRES=0; \
4748
while read F ; do \
4849
if [ -x $(NUT_WEBSITE_DIR)/tools/nut-ddl.py ] ; then \
4950
RES=0 ; $(NUT_DDL_PYTHON) $(NUT_WEBSITE_DIR)/tools/nut-ddl.py "$$F" "$$F.tmp.html" </dev/null >&2 || RES=$$? ; \
5051
rm -f "$$F.tmp.html" ; \
5152
if [ "$$RES" != 0 ] ; then \
53+
WORSTRES=$$RES; \
5254
echo "^^^ $$F" >&2 && FAILED="$$FAILED $$F" && continue; \
5355
fi ; \
5456
fi ; \
55-
egrep -v '^( *\#.*|.*:.*)$$' "$$F" | egrep -v '^$$' >&2 && echo "^^^ $$F" >&2 && FAILED="$$FAILED $$F" && continue; \
57+
egrep -v '^( *\#.*|.*:.*)$$' "$$F" | egrep -v '^$$' >&2 && echo "^^^ $$F" >&2 && FAILED="$$FAILED $$F" && WORSTRES=2 && continue; \
5658
PASSED="$$PASSED $$F"; \
5759
done; \
58-
if [ -n "$$FAILED" ]; then echo "`date -u`: FAILED sanity-check (got RES=$$RES) in following file(s) : $$FAILED" >&2; exit 1; fi; \
59-
if [ x"$$RES" != x0 ]; then echo "`date -u`: FAILED sanity-check : got RES=$$RES" >&2; exit $$RES; fi; \
60+
if [ -n "$$FAILED" ]; then echo "`date -u`: FAILED sanity-check (got WORSTRES=$$WORSTRES) in following file(s) : $$FAILED" >&2; exit 1; fi; \
61+
if [ x"$$WORSTRES" != x0 ]; then echo "`date -u`: FAILED sanity-check : got WORSTRES=$$WORSTRES" >&2; exit $$RES; fi; \
6062
echo "`date -u`: OK : All *.dev files have passed the basic sanity check : $$PASSED"; \
6163
exit 0; \
6264
)

0 commit comments

Comments
 (0)