MindFreeze / ha-sankey-chart

A Home Assistant lovelace card to display a sankey chart. For example for power consumption
MIT License
437 stars 21 forks source link

Utility Meter values not rendered #239

Closed Ashthos closed 4 weeks ago

Ashthos commented 1 month ago

Checklist:

Release with the issue: 3.5.0

Last working release (if known): Unknown

Browser and Operating System: Firefox / Chrome in Windows, Android Companion App

Description of problem:

Referencing a Utility meter with a tariff defined value is seemingly ignored by the Graph.

Adding the following yaml results in no values

height: 300
unit_prefix: k
round: 1
convert_units_to: ''
co2_intensity_entity: sensor.co2_signal_co2_intensity
gas_co2_intensity: 66.6
min_box_size: 3
min_box_distance: 5
show_states: true
show_units: true
energy_date_selection: true
sections:
  - entities:
      - entity_id: sensor.grid_consumption_today_tariff_offpeak
        name: Grid Offpeak
        type: entity
        children:
          - sensor.load_energy_today      
  - entities:      
      - entity_id: sensor.load_energy_today
        name: House Load
        type: entity
        children: []
    sort_by: state
    sort_group_by_parent: true
min_box_height: 3
type: custom:sankey-chart
min_state: 0
show_names: true
show_icons: false
wide: false

image

In Developer Tools - you can see that the Utility Meter tariff sensor that is referenced has a state value that should result in something being rendered.

image

Additional information:

These utility meters are historic, in that they have been defined in HA for well over a year. So there isn't an issue with the data taking a while to populate.

Ashthos commented 4 weeks ago

As an update to this, home assistant suggested some 'repairs' on these utility meters, which included setting the unit of measurement (which were already specified...) Once this happened, over the next 2 days the utility meters now populate correctly in the graphs.

image