flixlix / power-flow-card-plus

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

[BUG] Individuals not showing entities #471

Closed ilmisu closed 10 months ago

ilmisu commented 10 months ago

Describe the bug Even if I copy from the example configuration the individuals (I'd like to instance 3) the card is showing none of them.

To Reproduce

`type: custom:power-flow-card-plus entities: battery: entity: sensor.potenza_batteria_invertita state_of_charge: sensor.zcs_inverter_soc_batteria solar: entity: sensor.zcs_potenza_generata display_zero_state: true color_value: false color_icon: true use_metadata: false invert_state: false home: entity: sensor.solarman_activepower_load_sys icon: '' grid: entity: sensor.potenza_prelevata_ist name: Rete individual:

I don't know why I couldn't paste the code properly, please help.

Expected behavior the entity below zero consumption should be shown into card.

Screenshots image

Desktop (please complete the following information):

flixlix commented 10 months ago

Hello there, this feature is only available in the beta 0.2.0

Forgot to write it in the readme

ilmisu commented 10 months ago

Hello there, this feature is only available in the beta 0.2.0

Forgot to write it in the readme

alright, so the only way is to switch to beta or wait the release containing this feature?

flixlix commented 10 months ago

Yes, unfortunately. Luckily I think it won't take too long until v.0.2.0 is released.

souhl commented 10 months ago

Hm.. I have v0.2.0 installed, but its still missing.

flixlix commented 10 months ago

what version is showing in the browser console? Maybe clearing the cache will fix the issue

souhl commented 10 months ago
Screenshot 2024-01-24 at 10 40 20 Screenshot 2024-01-24 at 10 42 38

I just cleared the cache. But still the same.

Here the config:

  - type: custom:power-flow-card-plus
    entities:
      battery:
        entity: sensor.evcc_battery_power_w
        state_of_charge: sensor.evcc_battery_soc
      grid:
        entity: sensor.evcc_grid_power_w
        name: Tibber
      solar:
        entity: sensor.evcc_pv_power_w
        display_zero_state: true
        secondary_info:
          entity: sensor.shelly1pm_349454719ec3_power
          icon: ''
        invert_state: false
        name: Solar
      home:
        entity: sensor.evcc_home_power_w
        subtract_individual: true
      individual:
        - entity: sensor.easee_stellplatz_power
          icon: mdi:car-electric
          color: '#80b8ff'
          name: Stellplatz
          color_icon: true
        - entity: sensor.easee_garage_power
          icon: mdi:car-electric
          color: '#80b8ff'
          name: Garage
          color_icon: true
    clickable_entities: true
    display_zero_lines:
      mode: grey_out
      transparency: 50
      grey_color:
        - 189
        - 189
        - 189
    use_new_flow_rate_model: true
    w_decimals: 0
    kw_decimals: 1
    min_flow_rate: 0.75
    max_flow_rate: 6
    max_expected_power: 2000
    min_expected_power: 0.01
    watt_threshold: 1000
    transparency_zero_lines: 0
flixlix commented 10 months ago

Do the entities have any value, or just 0? Please try using your solar entity as an individual, just to check if the dot starts showing

souhl commented 10 months ago

Yes, that worked. So, how do I show entitites with zero value?

Screenshot 2024-01-24 at 10 46 55
flixlix commented 10 months ago

use display_zero: true in the individual config. more info here: https://github.com/flixlix/power-flow-card-plus?tab=readme-ov-file#individual-configuration

souhl commented 10 months ago

Ah, its set in the gui, but not shown in the config. When adding it manually to the config it works. thx

flixlix commented 10 months ago

yes thats expected. I'm glad it worked out