ups runtime
ups_runtimeEstimates UPS (Uninterruptible Power Supply) backup runtime from battery specifications and connected load. Takes VA rating, watt rating, load in watts, and battery configuration (count, voltage, amp-hours) to compute effective stored energy after efficiency losses and runtime in minutes and hours. Detects overload conditions when load exceeds the UPS watt rating. Calculates power factor from VA/W ratings. Ideal for server rack planning, homelab power budgeting, network closet UPS selection, and graceful shutdown timer configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| va_rating | Yes | UPS VA (volt-ampere) rating | |
| battery_ah | No | Capacity per battery in amp-hours (Ah) | |
| efficiency | No | Inverter/conversion efficiency (0-1), default 0.9 | |
| load_watts | Yes | Connected load in watts | |
| watt_rating | Yes | UPS real power (watt) rating | |
| battery_count | No | Number of batteries in the UPS | |
| battery_voltage | No | Voltage per battery (V) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pf | Yes | Power factor (watt_rating / va_rating) | |
| load_pct | Yes | Load as percentage of UPS watt capacity | |
| battery_wh | Yes | Total battery energy in watt-hours (before efficiency) | |
| overloaded | Yes | True if load exceeds UPS watt rating | |
| effective_wh | Yes | Usable battery energy after efficiency losses (Wh) | |
| runtime_hours | Yes | Estimated backup runtime in hours | |
| runtime_minutes | Yes | Estimated backup runtime in minutes |