ulic75 / power-flow-card

A power distribution card inspired by the official Energy Distribution card for Home Assistant
166 stars 27 forks source link

In/out don't need to be displayed at the same time #107

Open Ethan-G opened 1 year ago

Ethan-G commented 1 year ago

This copies the built-in HA energy card design, for which seeing how many kWh imported/exported and charged/discharged is important. However as this is just for power, there's no reason to show both of those at the same time as one is always going to be 0. It may as well only show one, for whichever direction power is currently flowing.

This things is otherwise great, and I like it enough that I might actually fork and PR this change myself if I ever get any time. :)

flixlix commented 1 year ago

I created a fork and changed a very large portion of the codebase. This new Card includes the option to choose wether to show both directions simultaneously and more: https://github.com/flixlix/power-flow-card-plus It is also available in HACS a default repository, so feel free to check it out!