-
Notifications
You must be signed in to change notification settings - Fork 19
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
UPS Power out showing wrong Wattage #41
Comments
Just so I understand correctly, this is regarding the UPS Load dial? I think it is strange because the calibration menu lets you change what percentage range between 0 and 100 the dial shows, which makes no sense to me. Besides the
As I was looking at your bug report, I also realized that I've broken the UPS Variable list window at some point, so I'll need to fix that before I can troubleshoot further. Once that window is working again, could you compare what your real UPS power consumption is, versus what's reported in the variables window, and what WinNUT displays? I also wonder if we could relate this to #24 and try to autodetect some of the calibration values instead of needing to manually input them. |
Allright, sorry for my long abscence, university is stressful. I may do some digging through the code, but i probably will not understand the code sufficiently to do anything about it, as my knowledge of it extremely limited and this is a complicated project for me |
Ok, before we go further it would be helpful to see the output of the variables list here. I'm busy with a lot of things too and probably won't be able to do much until mid-January at the earliest, so no worries. |
nutdev1 (/2000VA/) |
I should have also asked you to paste what the power reading was, but just from reading your variable output, it looks like your ups provides none of the desired variables for calculating the load as stated above, besides the load variable its self. I'm still not sure why we don't use that instead. Do you remember if the load was displayed at around 21%? |
Yeah that is entirely possible, at the moment it is showing about 29 to 32 percent load and these are the variables, so this corresponds to the ups.load variable: nutdev1 (/2000VA/) |
Ok, thank you. I definitely think we need to take a close look at how WinNUT calculates power usage... I'll have to go back and relearn some electricity formulas, but I think we can do something with the fact that your UPS provides voltage and amperage readings. |
I am increadibly sorry for necro-bumping this, seeing as its still open I'll go ahead tho. I am having the same problem, 19% load being shown, under that 182W. But ups.realpower is giving out the real live power draw as 243W. Why is ups.realpower not used if available to show said wattage under the percent? |
Hi @FynnleyNeko , no worries and thank you for providing feedback. Could you please also paste the full output of the UPS variables list? That will help me generate a list of useful parameters for the future. Hopefully this will be a relatively easy issue to address. |
Sure, my UPS gives out this: battery.charge: 96 EDIT: welp, guess code snippet didnt like those line breaks, so just text, sorry |
Everyone, I'm focusing on addressing this issue, still planning on how to do that. Prior to this however, I think the List_Var_Gui form needs an upgrade so we can properly visualize the variables of a UPS. I'm currently working on this in #109 , feel free to follow that. |
@MartinKurtz Sorry for taking so long to get back to you. I'm going back over your comments and trying to see if there's a way where we can estimate the current load both as a percentage and actual value. You said you know your UPS has a maximum load of 1400W, and I see from the variables that we could calculate that by Maybe we still do a manual max load input, and an automatic one. What do you think of this? Could you confirm my math and see if it works for your UPS? @FynnleyNeko It looks like there's no reason to guess the max power since your UPS reports the current power. Do you feel it will be fine to take your @Bluscream What do you think of this? |
Yep! Verified its spot on with one of those current clamps while hooking the UPS up to HomeAssistant for logging and notifications! |
All, Please download the debug build from here once it's done building. Notable changes are that the UPS Load calibration fields have been removed from the Prefs GUI (because they only adjusted the percentage values of the dial, which made no sense) and also adds in a new power calculation mode selection system and associated calculation algorithms. Please let me know how this works for you. If you have problems, then please attach the full log file to your comment. |
Verified working in my case, now reads the same as HomeAssistant and Netdata! Thanks! |
@FynnleyNeko Thank you for the quick feedback. Everyone; I'm going to go ahead and merge this and push out a quick pre-release so I can work on some other issues. If anyone is having further problems with the loal/power display, please re-open the issue with a debug log attached. |
I am perplex as with my NUT setup. I have a RHEL 9 Nut server which Winnut is connected to. Also, if I happen to stop and restart nut-driver via If I happen to disconnect / re-connect to the UPS via the WinNUT interface, readings are okay again. Logs attached to the issue. I've updated WinNUT to latest release to make this test. |
WinNUT has the unfortunate behavior of supplying fallback values as you've noticed, and this is something I've been meaning to correct. I'm not quite sure what the fix will look like; perhaps gauges will have a "disabled" appearance if a value is unavailable. It looks like I currently don't have an issue tracking this.
I have a bad feeling this is the result of me trying to reduce the amount of values that are updated every cycle in WinNUT. Thank you! |
@gbakeman math seems to check out, as its quite literally just a multiplication of the percentage with a maximum value at 100%. |
Excellent, thank you for verifying! |
Basically what it says in the title, my UPS has a max power out of 1400w so 20 percent arent 136w
I have been trying to add the option to manually set the maximum power myself ,but am currently failing at correctly positioning the field in the Calibration tab of the settings, and have the program calculate the power usage from that and the load percentage. I have also not managed to find out how you correctly use the .resx files and correctly sync them between each other so once i add a new button/tooltip or whatever such a line is added in all other languages
The text was updated successfully, but these errors were encountered: