- Home Appliances fixed

- Unittest with Home Appliances
This commit is contained in:
Andreas
2024-10-06 14:29:23 +02:00
committed by Andreas
parent 584ab225f1
commit cc270e71bc
6 changed files with 34 additions and 27 deletions

View File

@@ -96,9 +96,11 @@ class EnergieManagementSystem:
# Accumulate loads and PV generation
verbrauch = self.gesamtlast[stunde]
if self.haushaltsgeraet:
verbrauch += self.haushaltsgeraet.get_last_fuer_stunde(stunde)
haushaltsgeraet_wh_pro_stunde[stunde_since_now] = verbrauch
ha_load = self.haushaltsgeraet.get_last_fuer_stunde(stunde)
verbrauch += ha_load
haushaltsgeraet_wh_pro_stunde[stunde_since_now] = ha_load
# E-Auto handling
if self.eauto: