#Energy Dashboard not showing battery energy bars

1 messages · Page 1 of 1 (latest)

somber harbor
#

Hi,
I configured my energy dashboard with solar input and batteries.
Left it running for a few days but its not showing any of the bars for enegry going in or out of the batteries, although the sensors and values in the lower part are showing and changing.

Furthermore if I just add different energy cards to another dashboard then the battery energy bars are visible, just not on the main Energy Dashboard.

And the energy distribution graph is also not showing up, but that one is also not loading when I try to use that card in other dashboards.

If anything is unclear please let me know which further info is needed!
Dont mind the big solar production spike during the night, thats another problem I am also working at.

Pictures following....

#

here are the energy cards when I add them to a different dashboard:

      - type: grid
        cards:
          - type: heading
            heading: New section
          - type: energy-usage-graph
          - type: energy-solar-graph
          - type: energy-distribution
        column_span: 3
#
sensor:

  - platform: integration
    source: sensor.power_from_battery
    name: Energy from Battery (Total)
    unit_prefix: k
    unit_time: h
    round: 2
    method: left
    unique_id: energy_from_battery_total

  - platform: integration
    source: sensor.power_to_battery
    name: Energy to Battery (Total)
    unit_prefix: k
    unit_time: h
    round: 2
    method: left
    unique_id: energy_to_battery_total


template:
  - sensor:
      - name: Power from Battery
        unit_of_measurement: W
        state_class: measurement
        device_class: power
        unique_id: power_from_battery_id
        availability: "{{ states('sensor.batterie_power')|is_number }}"
        state: >
          {% if states('sensor.batterie_power')|float(0) <= 0 %}
            {{ states('sensor.batterie_power')|float(0)|abs }}
          {% else %}
            0
          {% endif %}

      - name: Power to Battery
        unit_of_measurement: W
        state_class: measurement
        device_class: power
        unique_id: power_to_battery_id
        availability: "{{ states('sensor.batterie_power')|is_number }}"
        state: >
          {% if states('sensor.batterie_power')|float(0) >= 0 %}
            {{ states('sensor.batterie_power') }}
          {% else %}
            0
          {% endif %}
somber harbor
#

Any help or ideas here?

slate tapir
#

any issues open in dev tools -> statistics?

slate tapir
sacred horizon
#

It's likely conditioned on you having a grid sensor.

#
    // Only include if we have a grid source.
    if (hasGrid) {
      view.cards!.push({
        title: hass.localize("ui.panel.energy.cards.energy_usage_graph_title"),
        type: "energy-usage-graph",
        collection_key: "energy_dashboard",
      });
    }
#
    // Only include if we have a grid.
    if (hasGrid) {
      view.cards!.push({
        title: hass.localize("ui.panel.energy.cards.energy_distribution_title"),
        type: "energy-distribution",
        view_layout: { position: "sidebar" },
        collection_key: "energy_dashboard",
      });
    }
somber harbor
#

@slate tapir @sacred horizon
Thanks for the input and it seems you were right.
The energy dashboard NEEDS to have at least a grid consumption sensor. So I made a template sensor thats always zero. After adding that the energy dashboard shows all the cards.

#

Just wondering why that is a requirement?
My setup is in a camper, so I dont have a grid, only solar and battery...

#

And also its just the energy dashboard not showing the additional cards, but if you add them manually into some dashboard at least the usage graph works, the distribution does not