Energy Dashboard - Sensor not showing up

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

It’s pretty simple, you just need to add a template that makes sure the sensors you are feeding the template are valid. You should also define default values for your float filters. Like this:

template:
  - sensor:
      - name: "Netzbezug in kWh"
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
        state: "{{ states('sensor.meter01_active_energy_plus')|float(0) / 1000 }}"
        availability: "{{ states('sensor.meter01_active_energy_plus')|is_number }}"
        icon: mdi:transmission-tower-export

      - name: "Netzeinspeisung in kWh"
        unit_of_measurement: "kWh"
        device_class: energy
        state_class: total_increasing
        state: "{{ states('sensor.meter01_active_energy_minus')|float(0) / 1000 }}"
        availability: "{{ states('sensor.meter01_active_energy_minus')|is_number }}"
        icon: mdi:transmission-tower-export

This way if either of the source sensors are not numbers (e.g. none, unavailable or unknown) the template sensor state will become “unknown”. This will prevent big spikes in your energy dashboard when the source sensor comes back.

5 Likes