@@ -187,60 +187,6 @@ def power(self) -> FormulaEngine[Power]:
187187 assert isinstance (engine , FormulaEngine )
188188 return engine
189189
190- @property
191- def production_power (self ) -> FormulaEngine [Power ]:
192- """Fetch the total power produced by the EV Chargers in the pool.
193-
194- This formula produces positive values when producing power and 0 otherwise.
195-
196- If a formula engine to calculate EV Charger power is not already running, it
197- will be started.
198-
199- A receiver from the formula engine can be created using the `new_receiver`
200- method.
201-
202- Returns:
203- A FormulaEngine that will calculate and stream the production power of all
204- EV Chargers.
205- """
206- engine = self ._formula_pool .from_power_formula_generator (
207- "ev_charger_production_power" ,
208- EVChargerPowerFormula ,
209- FormulaGeneratorConfig (
210- component_ids = self ._component_ids ,
211- formula_type = FormulaType .PRODUCTION ,
212- ),
213- )
214- assert isinstance (engine , FormulaEngine )
215- return engine
216-
217- @property
218- def consumption_power (self ) -> FormulaEngine [Power ]:
219- """Fetch the total power consumed by the EV Chargers in the pool.
220-
221- This formula produces positive values when consuming power and 0 otherwise.
222-
223- If a formula engine to calculate EV Charger power is not already running, it
224- will be started.
225-
226- A receiver from the formula engine can be created using the `new_receiver`
227- method.
228-
229- Returns:
230- A FormulaEngine that will calculate and stream the consumption power of all
231- EV Chargers.
232- """
233- engine = self ._formula_pool .from_power_formula_generator (
234- "ev_charger_consumption_power" ,
235- EVChargerPowerFormula ,
236- FormulaGeneratorConfig (
237- component_ids = self ._component_ids ,
238- formula_type = FormulaType .CONSUMPTION ,
239- ),
240- )
241- assert isinstance (engine , FormulaEngine )
242- return engine
243-
244190 def component_data (self , component_id : int ) -> Receiver [EVChargerData ]:
245191 """Stream 3-phase current values and state of an EV Charger.
246192
0 commit comments