Giter VIP home page Giter VIP logo

Comments (10)

sinclairpaul avatar sinclairpaul commented on June 19, 2024

I will assume this is your forum post?

https://community.home-assistant.io/t/nut-network-ups-tool-addon-on-hassos-on-proxmox-on-intel-nuc-cant-claim-usb-device-xxxxx-xxxx-result-not-representable/223883

By Host log do you mean on the hypervisor itself (i.e. Proxmox), as it looks like there is an issue passing the device through, have you tried with both the port and device bindings?

Not sure what we could do about this from an addon perspective.

from addon-nut.

woody4165 avatar woody4165 commented on June 19, 2024

Nope.

I've changed the UPS, from Eaton to APC hoping/thinking something was going to change.

By Host Log, I mean the one in the Supervisor->System page

Schermata 2020-09-29 alle 21 56 12

Strange thing is that when I switched from Eaton to APC, it worked a couple of times, I was able to let it run, I added the NUT Integration and all the sensors where ok.

Then, restarting the VM I started seeing those two errors.

In the second error I've got, I don't get any error in the Host Log, but I still don't see the USB in the Hardware panel

Schermata 2020-09-29 alle 22 01 14

This is what I see if I SSH in the VM (HassOS)

[ 3435.724142] usb 3-2: USB disconnect, device number 3
[ 3446.645735] usb 3-2: new low-speed USB device number 4 using uhci_hcd
[ 3446.836670] usb 3-2: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 1.06
[ 3446.837945] usb 3-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 3446.839085] usb 3-2: Product: Back-UPS XS 700U   FW:924.Z5 .I USB FW:Z5 
[ 3446.840250] usb 3-2: Manufacturer: American Power Conversion
[ 3446.841254] usb 3-2: SerialNumber: 3B2025X61060  
[ 3447.025476] hid-generic 0003:051D:0002.0002: hiddev96,hidraw1: USB HID v1.10 Device [American Power Conversion Back-UPS XS 700U   FW:924.Z5 .I USB FW:Z5 ] on usb-0000:00:1d.0-2/input0

So it seems, in this case, there is no issue and the USB seems to be correctly "loaded".

from addon-nut.

sinclairpaul avatar sinclairpaul commented on June 19, 2024

Then unfortunately it could be HassOS itself, you mention in your post you switched from Ubuntu, was this also running the addon under a Supervised install?

from addon-nut.

woody4165 avatar woody4165 commented on June 19, 2024

I've tried also a VM with a Supervised install on Ubuntu, but ? get the same.

Strange thing is that it was working with my Eaton UPS until some time ago, but I was not able to get when it happened, so until which Supervisor and HA version.

My doubt about an issue with NUT addon, was that in the HassOS OS the USB is correctly seen, but not within HA.

Thanks

from addon-nut.

sinclairpaul avatar sinclairpaul commented on June 19, 2024

But the OS is throwing errors?

I don't understand the reference to HA, the OS passes the USB device via Docker to the container, the configuration is set by the Supervisor.

From those particular errors logged from what I can see possibly could be a USB3.0/2.0 issue.

I really doubt we can do anything from the addon itself, it appears to be a hardware/driver issue.

from addon-nut.

woody4165 avatar woody4165 commented on June 19, 2024

Reading your answers, I agree with you, the issue seems to be from the OS to HA,

Don't know if it can be something related to Proxmox, since the other USB stick, Conbee for Zigbee, works perfectly

So, I will close this issue and I will try to understand where to look for...

Thanks

from addon-nut.

woody4165 avatar woody4165 commented on June 19, 2024

Is there any possibilities to have a more deep debug with an option or parameter?

I have done some search related to the error No matching HID UPS found and I see that mostly that error is because of permissions...

Thanks

from addon-nut.

sinclairpaul avatar sinclairpaul commented on June 19, 2024

NUT documentation is at https://networkupstools.org/docs/user-manual.chunked/index.html

You can fork the addon and test any changes needed. I would doubt it is permissions, as you wouldn't see errors at the OS level, and it would occur for multiple other users. Personally I run a Proxmox hosted Debian VM, with a Cyberpower UPS connected with the USB driver, and don't see the issue.

from addon-nut.

woody4165 avatar woody4165 commented on June 19, 2024

When I get the error No matching HID UPS found, I don't get any error in the Supervisor Log

[    1.800891] usb 2-1: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 1.06
[    1.800933] usb 2-1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[    1.800965] usb 2-1: Product: Back-UPS XS 700U   FW:924.Z5 .I USB FW:Z5 
[    1.800996] usb 2-1: Manufacturer: American Power Conversion
[    1.801024] usb 2-1: SerialNumber: 3B2025X61060  
[    1.853042] hid-generic 0003:051D:0002.0002: hiddev0,hidraw1: USB HID v1.10 Device [American Power Conversion Back-UPS XS 700U   FW:924.Z5 .I USB FW:Z5 ] on usb-0000:01:1b.0-1/input0

What does it mean this last row, 0003:051D:0002.0002 ?

BTW, I am doing this last test with the VM with Supervised install on Ubuntu 20.04 Server

from addon-nut.

github-actions avatar github-actions commented on June 19, 2024

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

from addon-nut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.