EasyJet UPS with NUT

nut.conf:

MODE=standalone
UPSD_OPTIONS=""
UPSMON_OPTIONS=""

ups.conf:

[jet]
driver = blazer_usb
port = auto
serial = 20100205
vendorid = 0665
productid = 5161
desc = "ActiveJet"

Yes, port has to be set, but can be any random string.

upsd.conf:

ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all

upsmon.conf:

RUN_AS_USER nut
MONITOR jet@localhost 1 nut nut master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5

upssched.conf:

CMDSCRIPT /upssched-cmd

Copy 52-nut-usbups.rules file to prevent system from loading wrong drivers:

cp /lib/udev/rules.d/52-nut-usbups.rules /etc/udev/rules.d/

Adapt hosts.allow & hosts.deny files:

upsd : localhost, LOCAL, 127.0.0.1,    [::1]               : ALLOW

Start nut SF:

/etc/init.d/nut start

Check syslog and try to communicate with UPS:

upsc -L
jet: ActiveJet

upsc jet
battery.voltage: 12.40
battery.voltage.nominal: 12.0
beeper.status: enabled
device.type: ups
driver.name: blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: 5161
driver.parameter.serial: 20100205
driver.parameter.vendorid: 0665
driver.version: 2.4.3
driver.version.internal: 0.03
input.current.nominal: 2.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 225.7
input.voltage.fault: 225.7
input.voltage.nominal: 230
output.voltage: 225.7
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 15
ups.productid: 5161
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0665

More info on NUT

ups
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License