flixlix / power-flow-card-plus

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

Alternative of Grid Import #286

Closed gordio closed 1 year ago

gordio commented 1 year ago

In Ukraine, from time to time we must run fuel generator. So i'm interesting in adding "grid backup (second source)"

So it will be nice to add second power source under Grid Import icon, with possibility to define alternatives. Like:

  1. Generator (Ecoflow Dual Fuel, that can be started automatically on low battery);
  2. Car V2G as backup source;
  3. Connected external Invertor

P.S. I'm trying to cover all possible cases, thats why thinking on some list of backup sources.

gajotnt commented 1 year ago

Captura de ecrã 2023-06-16 135147

flixlix commented 1 year ago

As @gajotnt posted, it is possible to define a power outage scenario, but I think you're looking for something that displays the values in case of an outage.

A few releases ago I added the functionality for bidirectional individual devices, in which a positive value goes from home to it and a negative value goes from it to home (by default at least).

Would this be enough to fulfill your requirements?

gordio commented 1 year ago

Let me show you example: power_card_plus_proposition P.S. Power line to battery may be not best idea… upd: P.P.S. (but in case if used EcoFlow Smart Generator it can directly charge EcoFlow battery)

NemesisXB commented 1 year ago

+1 for this.

Also agree that the line should not go to the battery, the generator can charge the battery and/or supply the home loads. Maybe something like this. image

If you do not select a secondary AC input source, then it looks like it currently does, but as soon as you select a secondary AC input source the Mains node is added. The mains node can be auto calculated based on the other values flowing in and out. Also with an Off state (like the grid Power Outage), to show whether the generator is running or not.

flixlix commented 1 year ago

This is a duplicate of #110. It needs some more thought to where it flows

iJAY86 commented 1 year ago

Something like this maybe. IMG_20230710_094007.jpg

iJAY86 commented 1 year ago

Or if possible, maybe the ability to use template for icon change depending on power source.

flixlix commented 1 year ago

Added in version 0.1.7! 🥳

I decided to have the generator be inside the grid circle and as such, replacing the grid entity once it fails