NUT Config: Omron UPS BWxT
-
Hat tip to @scolby33 for his original post about devd rules.
This post specifically applies to the Japan market Omron BW55T and BW120T UPS which I have personal experience with. These products are not natively supported by nut on any distro (FreeBSD or Linux) as far as I can tell.
I trust that the info here can be modified easily for other Omron products with a little thought.
cat /usr/local/etc/devd/nut-usb-omron.conf # This file is derivative of a file generated and installed by the Network # UPS Tools package. # # It was copied from the original, and edited as needed. # Omron BW55T - blazer_usb notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x0590"; match "product" "0x00d0"; action "chgrp uucp /dev/$cdev; chmod g+rw /dev/$cdev"; }; # Omron BW120T - blazer_usb notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x0590"; match "product" "0x00d2"; action "chgrp uucp /dev/$cdev; chmod g+rw /dev/$cdev"; };
Configuration for 'ups.conf' which can be applied in the pfSense admin GUI:
[BW55T] driver = blazer_usb port = auto subdriver = ippon vendorid = 0590 productid = 00d0 desc = "Omron BW55T" default.battery.voltage.high = 13.6 default.battery.voltage.low = 11.0 [BW120T] driver = blazer_usb port = auto subdriver = ippon vendorid = 0590 productid = 00d2 desc = "Omron BW120T" default.battery.voltage.high = 27.3 default.battery.voltage.low = 23.5
In my case restarting the devfs service and unplugging/plugging my device did not load the new rules. I needed to reboot.