Energy Dashboard - Sensor not showing up

I have a similar problem and I think it might have to do with state_class? total or total_increasing feels wrong, but wherever I look for it in home assistant threads, that’s the recommendation

Values shown in energy board are ridiculously high (even if it was the sum of everything since i set it up yesterday)
grafik
This should show the current energy production, right?

Sensor values seem to be right:
grafik

solar Sensor configuration is simple:

 - name: solar
        device_class: energy
        state_class: total
        unit_of_measurement: "Wh"
        value_template: "{{ value_json.production.solar }}"

Update: so it’s probably because i get watts (W) but HA Energy Dashboard wants Wh. Not sure how to solve that but that’s a new approach to google with. I must say it’s way more complicated than I expected. I put in several hours yesterday to reach this point.