power cost
power_costCalculate total power consumption, electricity cost, and circuit requirements for a homelab. Enter each device's wattage to get daily/monthly/yearly kWh and cost at your local electricity rate. Accounts for cooling overhead via PUE (Power Usage Effectiveness). Shows amperage draw at 120V and 240V and warns if you exceed the NEC 80% continuous load limit on a 15A breaker. Essential for budgeting homelab operating expenses and ensuring your electrical panel can handle the load. Chain output total_watts into cooling_btu for heat load sizing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pue | No | Power Usage Effectiveness — ratio of total facility power to IT equipment power. 1.0 means no cooling overhead, 1.2 is typical for a home server closet, 1.5+ for poorly ventilated spaces | |
| devices | Yes | List of devices with their wattage | |
| hours_per_day | No | Hours per day the devices are running | |
| kwh_rate_cents | No | Electricity cost in cents per kilowatt-hour |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daily_kwh | Yes | Daily energy consumption in kilowatt-hours | |
| yearly_kwh | Yes | Yearly energy consumption in kilowatt-hours (365.25 day average) | |
| monthly_kwh | Yes | Monthly energy consumption in kilowatt-hours (30.44 day average) | |
| total_watts | Yes | Sum of all device wattages before PUE adjustment | |
| amps_at_120v | Yes | Current draw at 120V (typical North American outlet) | |
| amps_at_240v | Yes | Current draw at 240V (typical European / high-power outlet) | |
| breaker_15a_pct | Yes | Percentage of a 15A / 120V circuit used. NEC requires continuous loads stay under 80% (12A) | |
| yearly_cost_usd | Yes | Estimated yearly electricity cost in USD | |
| monthly_cost_usd | Yes | Estimated monthly electricity cost in USD | |
| total_with_pue_watts | Yes | Total power draw including cooling overhead (watts * PUE) |