Yesterdays power consumption?

Is there any way to get yesterdays electricity consumption from a sensor?
Maybe even past month?

Any form of accumulated value which isn’t just total would be interesting, a little graph would be super cool to have in the interface (I know there is under history but I’m just talking about a small one, like a sparkline)

I would like it if they got a BC Hydro sensor. I see they got Quebec

https://home-assistant.io/components/sensor.hydroquebec/

Have you looked at the History Statistics Sensor?

Thank’s for the suggestion but the historic statistics sensor don’t seam to be able to handle consumption?