Hello,
since @pierre-gilles is off during the end-of-year holidays, I’m creating this thread as a reminder.
After several tests, I confirm that the units of the features for the MQTT indexes are not taken into account in the energy monitoring calculation.
Even when I set Wh or kWh (knowing that my indexes are in Wh), the calculation result remains identical in both cases:


From what I see with my other devices that report energy consumption in kWh, the results are correct.
I think the handling of units should be reviewed.