Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/power-flow-card-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,10 @@ export class PowerFlowCardPlus extends LitElement {
nonFossil.state.power = grid.state.toHome * nonFossilFuelDecimal;
}

// Calculate Total Consumptions
const totalIndividualConsumption = individualObjs?.reduce((a, b) => a + (b.state || 0), 0) || 0;
// Calculate Individual Consumption, ignore not shown objects
const totalIndividualConsumption = individualObjs?.reduce((a, b) => a + (b.has ? b.state || 0 : 0), 0) || 0;

// Calculate Total Consumptions
const totalHomeConsumption = Math.max(grid.state.toHome + (solar.state.toHome ?? 0) + (battery.state.toHome ?? 0), 0);

// Calculate Circumferences
Expand Down