This project was inspired by @clowrey and his project here: https://github.com/clowrey/esphome-esp32-2424s012-lvgl-powermeter/ (which is greatly inspired by @clydebarrow).
I've taken @clowrey's "powermeter"-example and I've made a (consumption) powermeter that reads from Home Assistant and display the current power usage, usage today (kWh and cost) and usage this month (kWh and cost).