Use Modbus Sensor in Energy Management

Hello,

Unfortunately, I can not see the total production for my SMA inverter in the Energy Management. I added device_class: energy and state_class: total_increasing as sensor attributes but it still does not appear in the selection:

modbus:
  - name: sma_inverter
    type: tcp
    host: 192.168.XXX.XX
    port: 502
    sensors:
        - name: sma_total_solar_production
          data_type: int32
          device_class: energy
          state_class: total_increasing  
          unit_of_measurement: kWH
          slave: 3
          address: 30531
          count: 2

What is the best way to get it included inside the Energy Management? I also tried Utility Meter and Statistic Sensor with no success.

Same here. Development page suggests state_class: total.
That does not help.

Hi there, does someone the solution ?