-
Notifications
You must be signed in to change notification settings - Fork 23
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
Huawei UPS missing load display #150
Comments
@MaxMadcc I'm noticing that the calculation for power based on current and voltage (219.5*1.7=373.15) is quite a lot different than your output.realpower reading. Can you confirm which if any of the variables/calculations represents the true power draw of your UPS? |
According to the official manual and nut huawei-ups2000 driver. I think " |
Thank you for finding that information! As I'm understanding it for now, it seems like I'd like to propose a few tests if you wouldn't mind running them for me. I'm going to work on the power calculation method first so it supports your UPS, then I'd like you to give that build a try for me and report how it works. After that, I'll implement the direct reading from Let me know what you think about this. |
- Added output current as new `UPS_Value` - Renamed a few `PowerMethod` enums to be more descriptive of what they do - Trying a new well-known variable initialization method that utilizes nullable values. Variable is left null if there's a problem retrieving it from the NUT server, then it will not be updated in the future. Only applying this to `output.current` since its use is limited to power calculation only. Applying this to other variables will likely require greater structural changes throughout WinNUT. - Added power calculation method involving output voltage and current, doable in a Huawei UPS (see #150) - GetUPSVar no longer prints a line assuming that the raised exception will go unhandled if a fallback value was not provided.
Just put up a new debug build here, please download and test when convenient. This should cause WinNUT to calculate power based on your UPS's output voltage and current only. More direct variable reading will come in the future. |
Thanks for your build. |
🤦 I'll try using NUT/upsd to put up a virtual UPS with your variables next time so I catch simple mistakes like this! I think the extra decimal places fix may be best applied at the gauge its self. I'm tempted to wrap that work into #136, especially since they too are missing the battery.voltage reading. But in the meantime, I'll work on applying the next sub-feature here which is reading directly from |
Another build is up now, this time with direct reading of |
Thanks for your fix. It seems to be working well. |
@MaxMadcc (Link)
UPS variables
Log (part)
Notes
We seem to be missing
output.current
,output.voltage
, andoutput.realpower
for load calculation.output.power
doesn't immediately appear to have any utility.The text was updated successfully, but these errors were encountered: