Simple Energy Dashboard Template - Sum Up Two Sensors - Sensor not showing up in Energy Dashboard

Hi all,

I’m trying to sum up two sensors, it seems to be working - the state is being updated with the cumulative kilowatts used for two sensors. However, the sensor does not show up as a selectable entity in the Energy Dashbaord.

Does anyone know how I can get the template sensor into the Energy Dashboard?

template:
  - sensor:
      - name: "Computer Rack Outlet Energy - Total"
        state: "{{ [states('sensor.computer_rack_outlet_1_energy'), states('sensor.computer_rack_outlet_2_energy') ] | map('float') | sum }}"
        unit_of_measurement: "kWh"
        device_class: energy
        icon: mdi:chart-histogram
        state_class: total_increasing

I found the solution - the Statistics Entity was “corrupted” - the units were changed and thus HA was not logging data.

The solution was here: Energy Dashboard - Sensor not showing up - #4 by tom_l

"Go to Developer Tools → Statistics and see if there are any FIX ISSUE buttons listed. Press them if there are."