@@ -23,6 +23,12 @@ class ComponentGraphConfig:
2323 allow_unconnected_components : bool = False ,
2424 allow_unspecified_inverters : bool = False ,
2525 disable_fallback_components : bool = False ,
26+ include_phantom_loads_in_consumer_formula : bool = False ,
27+ prefer_inverters_in_battery_formula : bool = False ,
28+ prefer_inverters_in_pv_formula : bool = False ,
29+ prefer_chp_in_chp_formula : bool = False ,
30+ prefer_ev_chargers_in_ev_formula : bool = False ,
31+ prefer_wind_turbines_in_wind_formula : bool = False ,
2632 ) -> None :
2733 """Initialize this instance.
2834
@@ -38,6 +44,33 @@ class ComponentGraphConfig:
3844 disable_fallback_components: Whether to disable fallback components in
3945 generated formulas. When this is `True`, the formulas will not include
4046 fallback components.
47+ include_phantom_loads_in_consumer_formula: Whether to consider phantom loads
48+ in the consumer formula. Meters with successors can still have loads
49+ not represented in the component graph. These are called phantom loads.
50+ When this is `true`, phantom loads are included in formulas by excluding
51+ the measurements of successor meters from the measurements of their
52+ predecessor meters. When `false`, consumer formula is generated by
53+ excluding production and battery components from the grid measurements.
54+ prefer_inverters_in_battery_formula: Whether to prefer battery inverters
55+ when generating Battery formulas. When this is `true`, battery inverters
56+ will be the primary source and battery meters will be secondary. When
57+ `false`, battery meters will be the primary source.
58+ prefer_inverters_in_pv_formula: Whether to prefer PV inverters when
59+ generating PV formulas. When this is `true`, PV inverters will be the
60+ primary source and PV meters will be secondary. When `false`, PV meters
61+ will be the primary source.
62+ prefer_chp_in_chp_formula: Whether to prefer CHP when generating CHP
63+ formulas. When this is `true`, CHPs will be the primary source and CHP
64+ meters will be secondary. When `false`, CHP meters will be the primary
65+ source.
66+ prefer_ev_chargers_in_ev_formula: Whether to prefer EV chargers when
67+ generating EV charger formulas. When this is `true`, EV chargers will be
68+ the primary source and EV meters will be secondary. When `false`, EV
69+ meters will be the primary source.
70+ prefer_wind_turbines_in_wind_formula: Whether to prefer wind turbines when
71+ generating wind turbine formulas. When this is `true`, wind turbines
72+ will be the primary source and wind meters will be secondary. When
73+ `false`, wind meters will be the primary source.
4174 """
4275
4376class ComponentIdProtocol (Protocol ):
0 commit comments