-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vULTECH UPS1050VA-PRO HOMEASSISTANT #1843
Comments
It could help to read the errors you've posted, e.g. According to
The NUT v2.7.4 referenced above was released Mar 9, 2016 so quite a bit before. Also, why is the device misleadingly called "apcups"? Not a problem per se, but confusing ;) Looking at USB IDs, an older |
Hm, try without the |
FWIW, you can also try to follow an instruction posted by a community member about building a newer HA plugin container with NUT, to try your chances with a recent GitHub snapshot: https://github.com/networkupstools/nut/wiki/Building-NUT-integration-for-Home-Assistant (otherwise, can't help about HA integration per se, never used it myself) |
Oh, it slipped my mind that in your earlier screenshot you ONLY had a productid, but not a vendorid. I believe both are required as part of one identifier. |
thanks but i try with all combine but no work another try with 👍 config:
now i see some information: log: |
And is it really on-battery and depleted at that moment? So is the shutdown correct or bogus?.. |
Sorry for delay but system in other house. Check and is bug . when change status no change on HA. |
I wonder if it is then due to this device talking some other protocol dialect than those supported in NUT 2.7.4 release. Quite a few Qx subdrivers were added by 2.8.0 and maybe later too. |
In that case you may have to investigate building a HA plugin with NUT... (see wiki link above) Is the OS there a general-purpose Linux running HA as an app/service/container? Can you try building current NUT on the raspberry directly (not necessarily installing it), to check if it sees your device data well? Less moving parts and all that... (to rule out HA/containers being the problem). You'd need to run the driver in build workplace picking arguments for subdrivers and producing a data dump, until one hopefully makes sense. See https://github.com/networkupstools/nut/wiki/Building-NUT-for-in%E2%80%90place-upgrades-or-non%E2%80%90disruptive-tests for hints. |
Which NUT version are you running with at the moment? A number of fixes for the "armac" sub-driver got merged recently (in master branch), are you using that?
Other than that, it seems like the device disconnects on its own (may be similar to https://github.com/networkupstools/nut/wiki/Troubleshooting-eventual-disconnections-(Data-stale) and might be alleviated by a more frequent polling, unless it is some issue with the controller in the UPS so it reboots and gets re-discovered). Re-enumeration as a different device number seems a bit odd, unless you've re-pluged stuff (not necessarily the UPS itself, but some kbd/mouse/flash...) - however it does say that one device could not be enabled => check the cable... did you try another? Also, NUT v2.8.0 or newer should be more diligently insisting on reconnections while running, if that helps. Although it might not help in cases like this, when the device identification has changed (initial detection is based on regexes for vendor/product ID, serial, etc. - but later reconnections may be trying the detected bus/device/port numbers... "first" at least, "only" maybe). |
Hello, It doesn't work out of the box thow. I've to comment out some lines of the nutdrv_qx as the ups report the state FSD even if it's simply on-line (probably the FSD state is readed in a wrong position but I cannot find the place where the driver reads it to fix). Here you can find my modifications (nutdrv_qx.c): 4222 if (ups_status & STATUS(FSD)) { Compiled with: ./configure --prefix=/usr --with-user=nut --with-group=nut --sysconfdir=/etc/nut And this is my ups.conf: Does anybody knows where the drivers read the FSD state, so I can try a better fix? Thank you, regards, |
Hi all,
on raspberry hassio i can try work nut server . i cant config i try with :
driver: nutdrv_qx
port: auto
config:
and i have this error :
[18:00:44] INFO: Configuring Device named apcups...
[18:00:45] INFO: Starting the UPS drivers...
Subdriver 'armac' not found!
Network UPS Tools - Generic Q* USB/Serial driver 0.28 (2.7.4)
USB communication driver 0.33
Network UPS Tools - UPS driver controller 2.7.4
Driver failed to start (exit status=1)
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
WHAT u suggest me ?
The text was updated successfully, but these errors were encountered: