Can't select daily yield from energy dashboard (SAJ inverter/solar panels)

I’ve got some problems adding my daily yield from my solar inverter to my energy dashboard.
I can’t seem to add the " today yield" entity but only select the “total yield” entity.
I

The “today yield” entity does show up in my entity list and it is working in a card on my dashboard, but still I can’t select it in the solar energy production list.

Does anyone know what’s the problem here and can help with a solution?

Thanks in advance!

The total yield should work just as well as the daily yield.

In answer to your question, to be selectable for the energy dashboard an entity must have the following attributes:

device_class: energy
state_class: total # or total_increasing
unit_of_measurement: Wh # or kWh, or MWh

You can see the attributes of your entity in Developer Tools → States.

I see that mine is missing the state_class attribute…
Any way I can add this attribute?

Which integration are you using to create the sensor?

I had to manually add some rules to my configuration.yaml;

`sensor:

  • platform: saj
    name: SAJ inverter
    host: “ip adress”
    type: wifi
    username: ***
    password: ***`

Just as described on the homeassistant page for integration of SAJ

You have two ways forward:

  1. open a new issue here asking for state_class to be implemented for the sensors:
  1. use customise to add the attribute manually:

You should probably do both. Then you can remove the customisation when/if the state_class is implemented.