diff --git a/src/panels/lovelace/cards/energy/hui-energy-solar-consumed-gauge-card.ts b/src/panels/lovelace/cards/energy/hui-energy-solar-consumed-gauge-card.ts index fdb2f5d3b0..6f54631658 100644 --- a/src/panels/lovelace/cards/energy/hui-energy-solar-consumed-gauge-card.ts +++ b/src/panels/lovelace/cards/energy/hui-energy-solar-consumed-gauge-card.ts @@ -77,11 +77,11 @@ class HuiEnergySolarGaugeCard let value: number | undefined; if (productionReturnedToGrid !== null && totalSolarProduction) { - const cosumedSolar = Math.max( + const consumedSolar = Math.max( 0, totalSolarProduction - productionReturnedToGrid ); - value = (cosumedSolar / totalSolarProduction) * 100; + value = (consumedSolar / totalSolarProduction) * 100; } return html` @@ -91,12 +91,13 @@ class HuiEnergySolarGaugeCard - This card represents how much of the solar energy was used by - your home and was not returned to the grid. + This card indicates how much of the solar energy you produced + was used by your home instead of being returned to the grid.

- If you frequently produce more than you consume, try to - conserve this energy by installing a battery or buying an - electric car to charge. + If this number is typically very low, indicating excess solar + production, you might want to consider charging a home battery + or electric car from your solar panels at times of high solar + production.
-
Self consumed solar energy
+
Self-consumed solar energy
` : totalSolarProduction === 0 ? "You have not produced any solar energy" - : "Self consumed solar energy couldn't be calculated"} + : "Self-consumed solar energy couldn't be calculated"} `; }