Energy-distribution - Values available as sensors?

Hey there.
Is there any way to get the values shown on the distribution-card as sensor-values?
energy distribution

If you know SQL you could create an SQL sensor to query the statistics table of the database.

This one is for MariaDB:

Thanks for the quick answer. But i don’t know SQL. So i assume that there is no “classic” sensor to use and i need to do all the math, HA already does anyway (adding all sensors etc…)?

Correct, but HA only does the calculations when the stats are viewed.