Electricity meter - variable prices

Maybe you can look to the app Power by the hour

There is a selection off Energy provider in it.
Then you can use a Shelly or Eaton device to count your Consumtion.
Maybee with the combination off a Eaton and all so the app from HomeWizard (HomeWizard App voor Homey | Homey )

Then You have a serius good inight off your use off electricity