Monitoring UPS with NUT under LXC container

Hi guys, can anyone help me with monitoring UPS from LXC container? I am successfully monitoring UPS for years with Debian and NUT. I would love to set same on LXC Debian container on Turris Omnia. Steps I did:

  1. in LXC conf
    lxc.autodev = 1 lxc.hook.autodev = /srv/lxc/nut/autodev lxc.cgroup.devices.allow = c 189:* rwm

  2. in /srv/lxc/nut/autodev
    #!/bin/bash cd ${LXC_ROOTFS_MOUNT}/dev mkdir -p bus/usb/004 mknod -m 666 bus/usb/004/004 c 189 0

  3. from Debian LXC container I can see:
    root@nut:~# lsusb Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 004 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

  4. but nut says it cannot see UPS:
    root@nut:~# /lib/nut/usbhid-ups -DD -a apc900 Network UPS Tools - Generic HID driver 0.38 (2.7.2) USB communication driver 0.32 0.000000 debug level is '2' 0.001058 upsdrv_initups... 0.001337 Checking device (1D6B/0002) (004/004) 0.001467 - VendorID: 1d6b 0.001481 - ProductID: 0002 0.001490 - Manufacturer: Linux 4.4.39-80079e1c1e5f9ca7ad734044462a761a-4 ehci_hcd 0.001499 - Product: EHCI Host Controller 0.001506 - Serial Number: f1058000.usb 0.001514 - Bus: 004 0.001524 Trying to match device 0.001537 Device does not match - skipping 0.001551 No appropriate HID device found 0.001566 No matching HID UPS found

so nut driver tries to communicate with bus 004 and device 004 BUT it thinks there is vendor 1D6B instead of 051d … I want to keep base WRT as sane as possible and do my mess in LXC instead, but this seems to be bulletproof somehow or I am missing something. Help pls, I am lost again…

maybe you need “apcsmart” driver and not generic hid driver?

@JamesT42 thank you for the hint, I forgot to mention - this model is APC Power-Saving Back-UPS Pro 900 so it is not smart unfortunately …