Calculate energy use based on wattage and daily on-hours

I’m trying to figure out how to calculate the energy use of my outdoor lights. I know the wattage on each fixture, and when they turn on and off. They turn on 30 minutes after sundown, and off 30 minutes before sunrise.

I can’t quite wrap my head around how to show the daily energy consumption on the “energy” dashboard. Can it be done?

Try PowerCalc, you can find it in HACS. Really well configurable for all kinds of situations