-
Notifications
You must be signed in to change notification settings - Fork 32
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
Cyberpower 1500 reconnects USB on status change and Hassio gets Data stale #30
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful. |
Not sure really what you are asking here, so the UPS disconnects from the host and reconnects? And the time out period for the driver gets hit? Addons can be restarted using HA automation's if needed, not sure how the addon could detect if its disconnected based on a cable pull vs the scenario you describe. |
The problem is that after UPS disconnection, despite it reconnects again (USB), Home Assistant can't monitor the ups anymore until the ups server is restarted manually, so I cannot receive alerts related with low battery, etc. I can restart the addon from Home Assistant, but it takes a while, so I miss information. It would be better to restart only the nut server without restarting the entire addon. |
Does the pollinterval option on the driver, and other settings not help? Personally I have a Cyberpower UPS connected via USB and haven't seen this issue. Unfortunately it would be impossible to tell when your issue exists. |
I think this issue is not related with poll interval since it only happens when the ups change the status from online to on battery mode (or viceversa). Here is the host dmesg:
And here is the addon log:
|
It appears to be hardware related, personally I would try different USB ports, cable, possibly a hub. Also see if it occurs on a different hardware platform, to rule out if it is the Pi itself. There really isn't anything that can be done here from an add on perspective. The HA integration result would be expected as the NUT server can no longer communicate with the UPS. The addon runs existing software maintained elsewhere, I would suggest looking at https://networkupstools.org/
|
Hmmm, you were right, it was a hardware problem related to the Raspberry Pi 4.
Conclusion: something weird happens with the USB ports of the Raspberry Pi 4 only when the UPS changes to on battery mode :( (BTW, the external hard disk attached to the next USB port doesn't disconnect). I wonder if the issue is related to the Argon ONE Case I'm currently using... Anyway, thank you for your comments @sinclairpaul |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Problem/Motivation
I've configured the addon and everything works fine (I can see all the information), but when the UPS enters on battery mode usb disconnects and connects again (I can see with dmesg) so hassio lost connection with the ups and nut server seems to be down because the message Date stale shows up. If I restart the addon, everything works fine again.
Expected behavior
The driver should support short usb disconnections.
Actual behavior
The connection with the ups is lost and nut server is down (Data stale).
Steps to reproduce
Just force to enter on battery mode on Cyberpower CP1500EPFCLCD
Proposed changes
Is there a way to keep the nut server running after a short usb disconnection? Otherwise, is it possible to restart the nut server through hassio.addon_stdin service?
The text was updated successfully, but these errors were encountered: