We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0512261 + 792f1fa commit 00602b5Copy full SHA for 00602b5
src/power-flow-card-plus.ts
@@ -362,8 +362,10 @@ export class PowerFlowCardPlus extends LitElement {
362
}
363
364
solar.state.toHome = 0;
365
- } else {
+ } else if (solar.state.toHome !== null && solar.state.toHome > 0) {
366
grid.state.toBattery = 0;
367
+ } else if (battery.state.toBattery && battery.state.toBattery > 0) {
368
+ grid.state.toBattery = battery.state.toBattery;
369
370
grid.state.toBattery = (grid.state.toBattery ?? 0) > largestGridBatteryTolerance ? grid.state.toBattery : 0;
371
0 commit comments