Need help converting Victron Cerbo GX MQTT data from Watts to kWh for Home Assistant Energy Dashboard

Hi, I have a question for those who managed to set up the Energy Dashboard in Home Assistant using data from a Victron Cerbo GX system via MQTT.

I’ve already managed to get the data into Home Assistant by following a YouTube tutorial, and the entities are showing up. However, I noticed that the values are in watts (“W”), and for the Energy Dashboard to recognize them, they need to be in kilowatt-hours (“kWh”).

This is where I’m stuck. I haven’t found any clear information online explaining how to convert or configure the data so that the Energy Dashboard accepts it properly.

Could someone guide me on how to do this?

Energy dashboard needs energy class values. Create helpers using the “differential” function, feed them the W sensors data and you’ve the correct virtual sensors to be used in the dashboard.