Sensor not available for Energy Dashboard

I have equipment connected to my electricity meter that provides me with the total consumption (kWh) for two given time periods (Peak hours and Off-peak hours). I have created two “energy meter” type sensors to track hourly consumption.

The problem I’m encountering is that both sensors are configured in the same way (the only difference is the sensor used to retrieve the data) :

but in the energy dashboard configuration, only one of the two is available. I really can’t understand why… I have restarted Home Assistant several times just in case.


Finally found the issue by myself and posting the solution in case it would be helpful for someone.

I check Statistics tab in Developer Tools and there was an error for this sensor about the unit field. I cliqued “correct” and it solved the problem