Converting total consumption to daily consumption

I have a Zigbee smart switch that reports total consumption of energy since it was connected. I’d like to have a helper report daily consumption, as that’s what I track on my energy dashboard (individual device subpanel).

My google-fu is apparently weak, as I haven’t been able to find such a thing.

Any pointers?