Energy Dashboard - Access History Entities

Hi, folks.
Is there a way to access the entities which show the energy and cost in the energy dashboard? Those get updated accordingly when you use the date configurator

Here’s my setup…

When I try to reference the state of these utility meters and the “_cost” entities which are created by the dashboard, they don’t hold history and aren’t updated based on the above date selector.
Example:

My idea is to be able to update these pie charts the with the date selector

Pie chart configuration:

- type: custom:apexcharts-card
        chart_type: pie
        header:
          show: true
          title: Sources
          show_states: true
          colorize_states: true
        series:
          - entity: sensor.grid_daily
            name: Grid
            color: grey
          - entity: sensor.sonoff_1001d8c166_energy
            name: Solar
            color: orange
      - type: custom:apexcharts-card
        header:
          show: true
          title: Consumption Distribution
          show_states: true
          colorize_states: true
        chart_type: pie
        series:
          - entity: sensor.daily_grid_utility_off_peak
            name: Off-peak
            color: green
          - entity: sensor.daily_grid_utility_part_peak
            name: Part-peak
            color: darkviolet
          - entity: sensor.daily_grid_utility_peak
            name: Peak
            color: red
      - type: custom:apexcharts-card
        header:
          show: true
          title: Cost Distribution
          show_states: true
          colorize_states: true
        chart_type: pie
        series:
          - entity: sensor.daily_grid_utility_off_peak_cost
            name: Off-peak
            color: green
          - entity: sensor.daily_grid_utility_part_peak_cost
            name: Part-peak
            color: darkviolet
          - entity: sensor.daily_grid_utility_peak_cost
            name: Peak
            color: red

I want to use the default date selector so that I can update all of the default and custom graphs at the same time.
Thanks in advance for helping…

1 Like

bump, bump, bump…

1 Like

Am not entirely sure of your question, but I think you want to know have the value of the sensors from energy dashboard being displayed in other graphs. This should be possible with SQL senors. A thread that might be helpful for you to start is: Using values of energy management in dashboards - #11 by flo269