Need help integrating a self made energy sensor into the energy dashboard

I am fairly new to HA and really struggle with this. Maybe someone can help me.
I have an electricity energy sensor based on a Tasmota device. It counts high and low tariffs.
I have created a helper that sums both to a total.
Neither of the sensors can be added in the dropdown on the Energy dashboard.
The documentation says “If you are unable to select your energy sensor in the grid consumption drop-down, make sure that its value is being recorded in the Recorder settings”.
Can someone point me to that? Do I have to setup any specific recorder integration for it to work?

I have added customisation to customise.yaml for adding device_class and state_class as many here recommended:

sensor.energy_high:
   unit_of_measurement: 'kWh'
   device_class: energy
   tariffs:
      - peak
   state_class: total_increasing
   
sensor.energy_low:
   unit_of_measurement: 'kWh'
   device_class: energy
   tariffs:
      - offpeak
   state_class: total_increasing
   
sensor.electricity_consumption:
   unit_of_measurement: 'kWh'
   device_class: energy
   tariffs:
      - peak
      - offpeak
   state_class: total_increasing

thanks, Till

Did you add this to your configuration.yaml file?

homeassistant:
  customize: !include customize.yaml

Did you restart home assistant after adding the customizations?

You must have either of these two in your configuration.yaml file:

recorder:
default_config:

Default config contains the recorder. So you don’t need recorder: if you have default_config:, unless you want to change the recorder settings. Sensors are recorded by default, you don’t need to add them.

Thank you. I do have default_config active and my sensors are also showing historical data. So that’s probably not the problem then.
Anything else I need to look at?