Skip to content

Commit 00602b5

Browse files
authored
Merge pull request #742 from re-ynd/main
Show flow from grid to battery
2 parents 0512261 + 792f1fa commit 00602b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/power-flow-card-plus.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ export class PowerFlowCardPlus extends LitElement {
362362
}
363363
}
364364
solar.state.toHome = 0;
365-
} else {
365+
} else if (solar.state.toHome !== null && solar.state.toHome > 0) {
366366
grid.state.toBattery = 0;
367+
} else if (battery.state.toBattery && battery.state.toBattery > 0) {
368+
grid.state.toBattery = battery.state.toBattery;
367369
}
368370
grid.state.toBattery = (grid.state.toBattery ?? 0) > largestGridBatteryTolerance ? grid.state.toBattery : 0;
369371

0 commit comments

Comments
 (0)