Equipment energy consumption statistics

Dear developers,
I see that the statistics component can count the production time and the number of workpieces. Is there any way to count the energy consumption of equipment?

You could do something like this by adding properties that define energy consumption for each machine. Then develop a script that calculates the total consumption. A similar topic is already in: Energy consumption

Thank you. Use the distribution function in the attribute to establish key energy consumption parameters, such as work time, and then use the script to write an expression to solve the total energy consumption. Can I understand that?