Switch current power -> costs?

hello, i ve here a switch which shows me the current power. i need a sensot, whichs shows me
the consumption for a day, week, month and a year and additional the costs of day, week, month and a year (0.25€ / kwh).
is there a addon available for this?


current_power_w: 91.12
device_locked: false
locked: true
total_consumption: '106.719'
total_consumption_unit: kWh
temperature: '6.0'
temperature_unit: °C
friendly_name: Automaten

You can try the utility meter integration.

I believe before this you need to make a template sensor for total consumption and make sure the recorder component has this sensor.