#energy-date-selector card is empty

1 messages · Page 1 of 1 (latest)

plush imp
#

Hi all,

I'm trying to create a dashboard with map view that would let me choose a day and show location history for that particular day. I'm following this guide https://userbag.co.uk/development/home-assistant-exploring-location-history/ that uses the advanced map card from HACS (https://github.com/nathan-gs/ha-map-card) together with the built-in energy-date-selector card.

My problem is that the energy-date-selector card does not contain anything, it is just an empty white box. I have also tried using another community card https://github.com/flixlix/energy-period-selector-plus, but that one is also empty.

One reason why this might be is that my energy dashboard is empty, as I don't have any devices/sensors related to energy, but I do not know how to fix this. It can also be caused by something else, I just have no idea what that might be. Has anyone came across this issue, and if yes, were you able to fix it? Many thanks for any help.

Here's the yaml config for my panel card:

type: panel
path: test2
title: test2
cards:
  - type: grid
    square: false
    cards:
      - type: energy-date-selection
        card_mod:
          style: |
            ha-card {
                  z-index: 1;
                  position: absolute;
                  height: 80px !important;
                  width: 80%;
                  top: 75px;
                  right: 10px;
                  max-width: 450px;
            }
      - type: custom:map-card
        history_date_selection: true
        card_size: 16
        entities:
          - zone.home
          - ...more zones
        card_mod:
          style: |
            ha-card {
              margin-top: -10px;
            }
            ha-card #map {
              height:calc(100vh - 56px);
              border-radius:0;
            }
    columns: 1

The style changes only affect where the card appears, even without them the date selector card is empty

heady swan
#

Try safe mode?

plush imp
#

Hi @heady swan , thanks for the suggestion, I have not heard of safe mode before. Unfortunately, that did not change anything, the date selector card is still empty even in safe mode.

heady swan
#

Have you gone through the energy onboarding with all the prompts?

#

Even if you don't have a sensor I think you can just like skip every step

plush imp
#

I tried clicking through the steps in the energy dashboard, but I always get stuck here

heady swan
#

hmm

#

Try to make this:

#

and add it to the grid input

#

I don't recall if this is required, but would be good to test.

plush imp
#

That did it! I was trying to create mock statistics that could be used in the energy dashboard, but making a template sensor did not occur to me.

heady swan
#

Good to know.