Skip to content

Commit

Permalink
Fix HC/Hp
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Aug 18, 2023
1 parent dce0c6b commit 9c9eaa8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 721 deletions.
2 changes: 1 addition & 1 deletion app/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1-beta11
0.9.1.b13
8 changes: 5 additions & 3 deletions app/models/export_home_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,11 @@ def myelectricaldata_usage_point_id(self, measurement_direction):
hc = stats.detail(i, "HC")["value"]
dailyweek_HP.append(convert_kw(hp))
dailyweek_HC.append(convert_kw(hc))
dailyweek_costHP.append(convert_kw_to_euro(hp, self.consumption_price_hp))
dailyweek_costHC.append(convert_kw_to_euro(hc, self.consumption_price_hp))
value = hp + hc
cost_hp = convert_kw_to_euro(hp, self.consumption_price_hp)
cost_hc = convert_kw_to_euro(hc, self.consumption_price_hc)
dailyweek_costHP.append(cost_hp)
dailyweek_costHC.append(cost_hc)
value = cost_hp + cost_hc
if i == 0:
daily_cost = value
elif i == 1:
Expand Down
Loading

0 comments on commit 9c9eaa8

Please sign in to comment.