Energy : Get Energy data as entity in HA for automations, etc

Hi
It could be nice to get the data collected in the energy integration as entities, like, consumption this day, week, month, year, etc. to be used in automations.

// Lasse

Closing as a duplicate. Please vote here: