flixlix / power-flow-card-plus

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

Possibility to use the card for water or other non-electrical entities #626

Open Diavolezza opened 1 month ago

Diavolezza commented 1 month ago

It would be great if the card could also be used for the water flow. At the moment this is already possible, but always W or KW are used as measurement type (instead of e. g. Liters).

Additional context This is my actual card including the water from outside and in- and outgoing of the cistern. Works fine, but how to remove the W? Bildschirmfoto 2024-05-10 um 11 51 56

SteadEXE commented 1 month ago

I would love to get this feature working for water and maybe gaz if not using kW but m3?

peter-dolkens commented 2 weeks ago

Could you share your yaml for the above please @Diavolezza

Diavolezza commented 2 weeks ago

Sure. Here it is:

type: custom:power-flow-card-plus
entities:
  home:
    entity: sensor.home_consumption
    color_icon: solar
  grid:
    icon: mdi:water
    entity: sensor.stadtwasser_zulauf_active_water_usage
    display_state: one_way
    name: Stadtwasser
  battery:
    icon: mdi:water
    name: Zisterne
    entity:
      consumption: sensor.zisterne_zulauf_aktiver_wasserverbrauch
      production: sensor.zisterne_ablauf_aktiver_wasserverbrauch
    display_zero_state: true
    display_state: two_way
    state_of_charge: sensor.zisterne_inhalt_in_prozent
    color_circle: true
    color_value: false
w_decimals: 0
kw_decimals: 2
min_flow_rate: 0.9
max_flow_rate: 6
watt_threshold: 10000
clickable_entities: true
display_zero_lines:
  mode: show
  transparency: 50
  grey_color:
    - 189
    - 189
    - 189
disable_dots: false
use_new_flow_rate_model: false