How to add STATE to an entity

I am quiet new to the energy module and modifying entities in HA.
I connected the Solaredge Solar-panels with the API to HA.

Can somebody share which entities were put where?

I also found out that most entities do not have the STATE-value.

unit_of_measurement: Wh
device_class: energy
friendly_name: solaredge Energieopbrengst vandaag

How can I add STATE to entity? And, do I have to do this to all entities one-by-one, or is there a script available?

I thank you in advance for your patience :grinning: and reply.

All entities have a state value.
The list you have posted a screenshot of seems to be of the attributes.

My apologizes.

I need to add state_class

From Frequently Asked Questions about home energy management - Home Assistant

  • The sensor must have the appropriate attributes. Check your entity attributes in Developer Tools > States to confirm the following:
    • device_class must be energy for electricity grid, solar, or battery categories. It must be gas for gas, or water for water.
    • state_class must be total or total_increasing.
    • The sensor must have an appropriate unit_of_measurement. See the help text for each category to see which units are accepted. Units containing an exponent must match superscript characters exactly as defined, e.g. is accepted, m3 is not.If any of the attributes are not correct, please open an issue against the integration that provides your sensor, or if you are developing custom template sensors, make sure the templates have the correct settings.