Skip to content

Commit

Permalink
feat: add show_remaining_energy: to compact card closes #292
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Mar 6, 2024
1 parent 1d2632d commit 81e813d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
"version": "4.19.1",
"version": "4.20.0",
"description": "A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.",
"main": "sunsynk-power-flow-card.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,7 @@ export class SunsynkPowerFlowCard extends LitElement {
display="${!config.show_battery || compact ? 'none' : ''}" fill="${bat_colour}">
${batteryStateMsg}
</text>
<text x="${!config.entities?.battery_status ? '193' : '169'}" y="323" class="${!config.entities?.battery_status ? 'st3' : 'st3 left-align'}" display="${!config.show_battery || !config.battery.show_remaining_energy || compact ? 'none' : ''}"
<text x="${!config.entities?.battery_status ? '193' : compact ? '270' : '169'}" y="${compact ? '338' : '323'}" class="${!config.entities?.battery_status ? 'st3' : 'st3 left-align'}" display="${!config.show_battery || !config.battery.show_remaining_energy ? 'none' : ''}"
fill="${bat_colour}">${this.toNum(((battery_energy * (parseFloat(state_battery_soc.state) / 100) /1000)), 2)} kWh
</text>
<text id="battery_soc_184" x="368.5" y="351" fill=${bat_colour}
Expand Down

0 comments on commit 81e813d

Please sign in to comment.