flixlix / power-flow-card-plus

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

[BUG] Secondary info not showing for Grid #279

Closed e10kstarfire closed 1 year ago

e10kstarfire commented 1 year ago

Describe the bug Secondary info entity is not showing for the Grid item

To Reproduce

type: custom:power-flow-card-plus
watt_threshold: 999
clickable_entities: true
use_new_flow_rate_model: true
entities:
  fossil_fuel_percentage:
    display_zero: true
    state_type: percentage
    entity: sensor.co2_signal_grid_fossil_fuel_percentage
  home:
    entity: sensor.givtcp_ed2253gXXX_load_power
    override_state: true
  grid:
    display_state: one_way
    entity:
      consumption: sensor.givtcp_ed2253gXXX_import_power
      production: sensor.givtcp_ed2253gXXX_export_power
    secondary_info:
      entity: select.givtcp_ed2253gXXX_mode
  solar:
    entity: sensor.givtcp_ed2253gXXX_pv_power
  battery:
    display_state: one_way
    entity:
      consumption: sensor.givtcp_ed2253gXXX_discharge_power
      production: sensor.givtcp_ed2253gXXX_charge_power
    state_of_charge: sensor.givtcp_ed2253gXXX_soc
  individual1:
    entity: sensor.myenergi_eddi_power_charging
    icon: mdi:shower
    name: Hot Water
    display_zero: true
    secondary_info:
      entity: sensor.myenergi_eddi_status
max_expected_power: 5000

image

flixlix commented 1 year ago

Fixed in #280 Although I wouldn't call this a bug, since your entity probably has a state type of string. Up until this point only the individual entities supported strings instead of numbers in the secondary_info. You could also use templates before.

Will be available in the next version

e10kstarfire commented 1 year ago

Ah I see , thanks very much ☺️