Closed tamet83 closed 4 years ago
You'll need to use udev rules to make your APC UPS USB device show up as /dev/usb/hiddevX
so that Hass.io can see it. I don't know the details of doing that on Proxmox/LXC, but I'd start with making the /dev/usb/hiddevX
device show up on your physical host, then work on getting it passed into the LXC container.
There's some udev rule info on this page that may be helpful.
Because of my lack of knowledge whit Linux in general, I think I won’t be able to do it alone. I wrote to whiskerz007 and see if he can make some changes to his script. Anyway, thanks for your help, really appreciate it.
Hi @korylprince , I've the same tamet83 problem and I'd tried to use udev rules as your suggestion but when I try to start the addon i retrieve this error:
[hassio.docker] Can't start addon_a722577e_apcupsd: 500 Server Error: Internal Server Error ("error gathering device information while adding custom device "/dev/usb/": not a device node")
If helping, my device is located in /dev/bus/usb/003/002
Can you help me?
The problem is the same: you've got to get the /dev/usb/*
devices to show up to hass.io so that it can put them into the apcupsd container. I'm not very familiar with LXC, and you're much more likely to get a solution from the issue on the proxmox_hassio_lxc project.
maybe the problem is debian10 and apcupsd?
@korylprince thanks for the reply.. isn't possible by the addon configuration set manually the path? Because the problem isn't LXC but maybe how debian10 manage the usb devices
This add-on is limited by this issue, unfortunately; I can only hard-set device paths for the add-on.
I'm going to go ahead and close this issue, as it's not fixable by this project. If you're not going to use the standard Hass.io installations (which puts the devices in the proper places), it will be up to you to use udev rules or some other mechanism to populate the /dev/usb/*
devices.
@korylprince , I answer even if you have closed the issue, to tell you that the problem was in the management of resources in my system with Proxmox, LXC and VM. So I confirm that with the latest revision of the whiskerz script everything works as you can see in the my comment in his script issue.
Thank you
Awesome! Glad you were able to get it working. Thanks for posting back here with a solution.
Hi,
I've setup a new instance of Hassio with Whiskerz scritp.
I have both a ConBee stick and and APC UPS USB.
When i try to run the addon I receive this error:
ERROR (SyncWorker_1) [hassio.docker] Can't start addon_a722577e_apcupsd: 500 Server Error: Internal Server Error ("error gathering device information while adding custom device "/dev/usb/": no such file or directory")
Do you have any advice how to solve this problem?
This hare the devices listed in my Hass.io instance:
``