Input of solar2mqtt integration under energy tab

With the integration, I created entities without identifiers.
How can I bring these entities under the energy tab? How can I see the consumption?
Could you help me what should be entered in the configuration.yaml??


MQTT sensor

Don’t you need a device class for the sensors?