Sensor not showing in Energy Dashboard

I have a relay module connected via Zigbee2MQTT, the related sensor is not showing in the energy dashboard.

The entity attributes are:

state_class: total_increasing
unit_of_measurement: kWh
device_class: energy
friendly_name: Bathroom Light FL2 Energy

Any issue with the device attribute configuration?

Do you possibly have old data with the wrong units, etc.? Developer Tools – Statistics can help with this. I had this issue with a sensor not showing up in the Energy dashboard because I had a few data points from my initial setup in the wrong/different units.