domingo, julho 05, 2020

apcupsd no modelo BZ1500XLBI-BR

identifique seu APC através:
$ ls -l  /dev/usb/
total 0
crw------- 1 root root 180, 96 Jul  5 20:00 hiddev0

depois execute
$ udevadm info --attribute-walk --name=/dev/usb/hiddev0 | egrep 'manufacturer|product|serial'

   ATTRS{manufacturer}=="APC by Schneider"
    ATTRS{serial}=="VIDE ETIQUETA"
    ATTRS{product}=="BZ1500XLBI-BR"
    ATTRS{product}=="USB2.0 Hub"
    ATTRS{serial}=="0000:01:00.0"
    ATTRS{manufacturer}=="Linux 4.19.118-v7l+ xhci-hcd"
    ATTRS{product}=="xHCI Host Controller"                                                                 


no /etc/apcupsd/apcupsd.conf

UPSTYPE usb
DEVICE /dev/usb/hiddev0  (verifique se está em hiddev0, conforme o comando acima)

$ systemctl stop  apcupsd.service
$ apctest (deve funcionar e ser possível verificar o UPS)
$ systemctl start  apcupsd.service


Referencias:

https://wiki.debian.org/apcupsd#Configuring_.28Single_UPS_Device.29
http://www.apcupsd.org/manual/manual.html#usb-configuration