ESPHome - SolarPV inverter - Energy sensor not available [SOLVED]

I expect you need to set the state class and device_class for your energy sensors.

     - name: cumulated_energy_total
       unit_of_measurement: "Wh"
       accuracy_decimals: 0
       icon: "mdi:car-battery"
       state_class: "total_increasing"
       device_class: "energy"

Note that it is the energy (not power, voltage etc) sensors that can be used in the energy dashboard.