Energy configuration - HA does not accept my grid Import sensor entity

HI

I tried to create my energy dashboard, but actually no success. I go to “energy” → click on the three dots → energy configuration. There I would like to add the sensor for my grid energy consumption but HA do not accept this. The Entity looks like (see picture ad the end). Is there a possibility, that the reason is, that my sensor show kW and not kWh? If yes, what can I do or how can I create a sensor with kWh for my energy consumption from the grid.

Thanks & Best Regards,
Stefan

Go to Settings then select Devices & services click on helpers.


and

Select as shown and select the entity you want to convert and write the desired name for the new entity above that will show you the consumption in kWh.