Hi, I suggest that you first have a look at the Utility Meter integration for an overview of how this typically works:
You probably need to create a Utility Meter with a monthly cycle, you will also need to create an automation that changes the tariff at the relevant changeover times and the documentation provides an example of how to do this with 2 tariffs (peak and off-peak).
You can then create an energy dashboard (Settings - Dashboards) to visual the data and see the energy used and cost for each of the tariffs. The following provides an overview of how to do this:
thank you for helping out, Energy meter tariffs with peak/offpeak are out there and easier to setup, but in my case its useless. as my tariffs are based on kWh.
I couldn’t find a way to do it in the Energy dashboard, so I made an input_number helper for each tariff, and a sensor with the following: