slipx06 / sunsynk-power-flow-card

⚡A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.
MIT License
178 stars 52 forks source link

Battery inverse animation #66

Closed krime777 closed 1 year ago

krime777 commented 1 year ago

Is there an existing issue for this?

Current Behavior

When battery_current_191 is negative the battery is feeding the inverter, when it's positive the battery is charging. The animation is the other way around, when the battery is discharging (battery_current_191 is negative) the dot moves from the inverter to the battery and on charging the dot moves from the battery to the inverter.

Steps To Reproduce

No response

Expected behaviour

The dot between battery and inverter should move the other way.

Card Version

2.1.2

Home Assistant Version

2023.08.1

Configuration

No response

Relevant log output

No response

slipx06 commented 1 year ago

HI. There is an option to invert your battery flow. Refer to the invert_power: attribute under the battery card configuration

https://slipx06.github.io/sunsynk-power-flow-card/configuration.html

The flow direction is based on the battery power value.

invert_power: | Optional | false | Set to true if your sensor provides a positive number for battery charge and negative number for battery discharge -- | -- | -- | --