Appdaemon device_class

Hi,

I have an Appdaemon script that scrapes the web page of my uncommunicative solar inverter. It creates 3 entities: 1x power, 2x energy.
Now I would like to add those to the energy dashboard. But for this, I need to fulfill this requirements (from Frequently Asked Questions about home energy management - Home Assistant)

  • 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.

How do I go about that? I’m sorry, I have no idea what to do, and I have not found documentation or examples.
I would be thankful if someone could point me at something useful.