Hi @mounir,
I am working on similar topics for our FENECON product “FEMS App Dynamischer Stromtarif” / “FEMS App Time-of-Use Tariff”.
See this link for technical details: FEMS App Dynamischer Stromtarif
The code is under heavy development and improvement, but it’s production ready and in use by hundreds of productive systems. It should be a solid basis for your project.
Regards,
Stefan