NUT Addon USB issue

Hi,
Im using HAOS 7.6 with core-2022.4.1 and supervisor-2022.03.5 and Im install NUT addon 0.10.0
Im using Powerwalker VFI 2000C LCD UPS connected over USB cable.
In HAOS usb is detected:
slika

In HA GUI is also visible:

And NUT addon find it and try use it but then throw error:

Can't claim USB device [0665:5161]: could not detach kernel driver from interface 0: No route to host

Configuration:

devices:
  - name: Powerwalker_VFI_2000
    driver: blazer_usb
    port: auto
    config: []
mode: netserver
shutdown_host: 'false'
users:
  - actions: []
    instcmds:
      - all
    password: zg65bz5zu543cd
    username: test
list_usb_devices: 'true'
log_level: debug

Debug:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] nut: applying... 
[fix-attrs.d] nut: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Network UPS Tools
 Manage battery backup (UPS) devices
-----------------------------------------------------------
 Add-on version: 0.10.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.6  (amd64 / qemux86-64)
 Home Assistant Core: 2022.4.1
 Home Assistant Supervisor: 2022.03.5
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nut.sh: executing... 
[21:06:04] INFO: Setting mode to netserver...
[21:06:04] INFO: Connected USB devices:
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[21:06:04] INFO: Generating /etc/nut/upsd.users...
[21:06:04] INFO: Configuring user: test
[21:06:05] DEBUG: Password SHA1: 62C093346CC51175C57DE69E2A9A6C3EDBAC4EEE
[21:06:05] DEBUG: Requested API resource: https://api.pwnedpasswords.com/range/62C09
[21:06:05] DEBUG: API HTTP Response code: 200
[21:06:05] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[21:06:06] INFO: Configuring Device named Powerwalker_VFI_2000...
[21:06:06] INFO: Starting the UPS drivers...
   0.000000	Starting UPS: Powerwalker_VFI_2000
Can't claim USB device [0665:5161]: could not detach kernel driver from interface 0: No route to host
   0.098624	Driver failed to start (exit status=1)
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
Network UPS Tools - UPS driver controller 2.7.4
[cont-init.d] nut.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
-----------------------------------------------------------
                Oops! Something went wrong.

 We are so sorry, but something went terribly wrong when
 starting or running this add-on.
 
 Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

As I know it is not USB<->SERAIL adapter because command “ls /dev/serial/by-id” do not show it…

Any idea how to fix issue?
Thanks for any help.

Same issue here - have you found a solution for that?

Hi,
I get it working but is unstable and it after some time just stop working and need reboot VM to get it work again. Restarting NUT addon do not help. I don’t remember corectly if repluging USB help. I think that this is problem of USB PCIe passthrough or USB3.0 compatibility… When I will have more time I will test again different options(Assign only USB to VM instead complete USB card)…

Right now I use this configuration:

devices:
  - name: UPS
    driver: blazer_usb
    port: auto
    config:
      - vendorid = 0665
      - productid = 5161
mode: netserver
shutdown_host: false
users:
  - actions: []
    instcmds:
      - all
    password: testpass
    username: test
list_usb_devices: false

I have used another method: I have configured the UPS directly on my Synology NAS and using the network server of the NAS with only the integration, not the add-on.
It works fine so far. I’m getting slightly different sensors, but at least I can see the charge and utilization, which is important

Mine works with this code:

devices:
  - name: myups
    driver: blazer_usb
    config:
      - all
    port: auto
mode: netserver
shutdown_host: "false"
users:
  - password: xxxxx
    username: ProLink
    instcmds:
      - all
    actions: []
log_level: debug
list_usb_devices: "true"