hassio-addons / addon-nut

Network UPS Tools - Home Assistant Community Add-ons
https://addons.community
MIT License
182 stars 35 forks source link

Forza UPS / device not found #267

Closed benquan closed 1 year ago

benquan commented 1 year ago

Problem/Motivation

I am getting "No supported UPS detected"

Actual behavior

I get this error:

[16:27:05] INFO: Connected USB devices:
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 003: ID 0665:5161 Cypress Semiconductor USB to Serial
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[16:27:06] INFO: Generating /etc/nut/upsd.users...
[16:27:06] INFO: Configuring user: benquan
[16:27:06] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[16:27:07] INFO: Configuring Device named forza...
[16:27:07] INFO: Starting the UPS drivers...
No supported UPS detected
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
Driver failed to start (exit status=1)
Network UPS Tools - UPS driver controller 2.7.4
cont-init: info: /etc/cont-init.d/nut.sh exited 1
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
cont-init: warning: some scripts exited nonzero
s6-rc: warning: unable to start service legacy-cont-init: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Device 003 should be the UPS (Bus 001 Device 003: ID 0665:5161 Cypress Semiconductor USB to Serial)

Steps to reproduce

This is the configuration file used:

- name: forza
  driver: blazer_usb
  port: auto
  config: []

The exact device used is: Forza SL-801UL

sinclairpaul commented 1 year ago

Doesn't appear to be on the compatibility list https://networkupstools.org/stable-hcl.html

The addon wraps the NUT package, so there isn't really much we can do here.

benquan commented 1 year ago

Made it work!

New config:

- name: forza
  driver: nutdrv_qx
  port: auto
  config: []