Skip to content

Conversation

@seb26
Copy link

@seb26 seb26 commented Oct 6, 2025

Create DEFAULT_UPS_POWER_FROM_LOAD_PERCENTAGE config setting. Add override_nut_values(), since without it the values are pushed straight through with only key renaming. Inside, define the condition of where ups.power is not available, but ups.load and ups.realpower.nominal are.

Power approximation:
power (W) = ( load(%) / 100.00 ) * nominal power (W).

PR origin

This is a repost of #37 which:

  • I originally created on seb26:master and is now on a proper branch
  • Squashed into a single commit
  • No code change

… values if NUT `ups.power` is not available.

Create DEFAULT_UPS_POWER_FROM_LOAD_PERCENTAGE config setting. Add
override_nut_values(), since without it the values are pushed straight through
with only key renaming. Inside, define the condition of where `ups.power`
is not available, but ups.load and ups.realpower.nominal are.

Power approximation:
    power (W) = ( load(%) / 100.00 ) * nominal power (W).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant