Skip to content

bug: graph loading eternally when last_changed of entity is too old #1326

@cvandeplas

Description

@cvandeplas

Whenever the last_changed of an entity is too old, the graph card line does not load:

Image

Notice that it is able to load the data in the number on the top right (sensor.p1_meter_peak_demand_current_month).
When I plot the history of the data, and download it as CSV I notice the last_changed is old of that one sensor (sensor.p1_meter_peak_demand_current_month)

entity_id state last_changed
sensor.p1_meter_average_demand 339,0 28/12/2025 9:59
sensor.p1_meter_average_demand 343,0 28/12/2025 9:59
sensor.p1_meter_peak_demand_current_month 4258,0 16/12/2025 17:40

When I manually set the sensor value, the graph shows again

Image

The configuration of the card:

type: custom:mini-graph-card
name: Peak power
entities:
  - entity: sensor.p1_meter_average_demand
    name: Avg peak now
    show_legend: false
    show_points: false
   
  # entry with an old last_changed
  - entity: sensor.p1_meter_peak_demand_current_month
    show_state: true
    show_legend: false
    show_points: false
    fixed_value: true
  
hours_to_show: 0.25
points_per_hour: 360
aggregate_func: max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions