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
161 stars 48 forks source link

wrong flow color #458

Closed jolly12f closed 1 month ago

jolly12f commented 1 month ago

Is there an existing issue for this?

Current Behavior

with the latest update the flow from inverter to load is colored but when the load is powered by two sources such as photovoltaic and battery the color of the flow remains neutral

Steps To Reproduce

the load has two power sources

Expected behaviour

the flow could be of two colors or have the color of the more powerful one

Card Version

Lastest

Home Assistant Version

Lastre

Configuration

No response

Relevant log output

No response

jolly12f commented 1 month ago

IMG_3977

slipx06 commented 1 month ago

Currently the colour of the path will only change if the load or battery is being supplied 100% by one source i.e. grid or solar. Where there is a combination of two sources it reverts to the colour defined in your config

jolly12f commented 1 month ago

Yes, I saw, could it be modified with the two colors or with the one that exceeds 50%?

jolly12f commented 1 month ago

I can't find where to change this parameter

slipx06 commented 1 month ago

image

Under load and battery

battery:
  path_threshold: 100
load:
  path_threshold: 100
jolly12f commented 1 month ago

image

Under load and battery

battery:
  path_threshold: 100
load:
  path_threshold: 100

the non-use range should be adjusted in the grid, not just a minimum threshold because when the energy is introduced the value is always negative even if it is a value close to 0 it is not to be considered