I am looking for a way to determine the total electricity peak demand (kW) for each month in order to estimate how much the electricity demand charges may be on a project (in my case, the Demand Charge from the utility is $3.61 per peak kW per month).

Any recommendations or examples for how to pull the maximum electricity demand (kW) that occurs each month to calculate the demand charges would be appreciated!

This isn’t terribly too difficult to do with native Grasshopper math components or with a couple of lines of Python inside a GHPython component.

You’ll just want to process the data collections that come out of the HB Read Room Energy Result component. You can sum all of the hourly data collections with electricity together using the LB Mass Arithmetic Operation component.

Then, you can use the group_by_month method on the summed data collection inside a GHPython component to get the data collection values grouped by month. Then just get the max of each month group.

Hi @chris,
Something like this makes sense for you?

try:
from ladybug_rhino.grasshopper import all_required_inputs
except ImportError as e:
raise ImportError('\nFailed to import ladybug_rhino:\n\t{}'.format(e))
if all_required_inputs(ghenv.Component):
peakMax = []
monthly = _data.group_by_month()
for i in (monthly):
peakMax.append(max(monthly[i]))

Also a question: I may be missing something, but when trying to sum all electricity consumptions (H, C, L, E) with only one component (LB Mass Arithmetic Operation) it takes only the first input of the list of inputs _data_1 and _data_2. Is it possibe to sum up various data collections with only one component or i’m doing something wrong??

There are two different components for doing arithmetic on data collections, @AbrahamYezioro .

The LB Arithmetic Operation component is for the case that you want to sum/subtract/multiply/divide one data collection by another (or a data collection by some number). Conversely, the LB Mass Arithmetic Operation is for cases where you want to sum a list of data collections together (or multiply them together, etc.). The latter component should give you what you need and is what I am recommending here.