mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
capture energy_consumption_estimates
This commit is contained in:
parent
30ce7df6c1
commit
f5eab413c2
1 changed files with 8 additions and 1 deletions
|
|
@ -113,6 +113,7 @@ class Property:
|
|||
self.floor_type = None
|
||||
|
||||
self.energy_cost_estimates = {}
|
||||
self.energy_consumption_estimates = {}
|
||||
|
||||
self.energy = {
|
||||
"primary_energy_consumption": epc_record.get("energy_consumption_current"),
|
||||
|
|
@ -618,7 +619,6 @@ class Property:
|
|||
lighting_cost = float(self.data["lighting-cost-current"])
|
||||
heating_cost = float(self.data["heating-cost-current"])
|
||||
hot_water_cost = float(self.data["hot-water-cost-current"])
|
||||
total_cost = lighting_cost + heating_cost + hot_water_cost
|
||||
|
||||
adjusted_heating_cost = AnnualBillSavings.adjust_energy_cost_to_metered(
|
||||
epc_energy_cost=heating_cost,
|
||||
|
|
@ -668,6 +668,13 @@ class Property:
|
|||
"appliances": appliances_energy_cost
|
||||
}
|
||||
|
||||
self.energy_consumption_estimates = {
|
||||
"heating": heating_prediction,
|
||||
"hot_water": hot_water_prediction,
|
||||
"lighting": lighting_kwh,
|
||||
"appliances": appliances_energy_use
|
||||
}
|
||||
|
||||
self.expected_energy_bill = (
|
||||
adjusted_heating_cost + adjusted_hot_water_cost + adjusted_lighting_cost + appliances_energy_cost
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue