Show the history graph for the two sensors.
Show how you have configured the tariff selection. Format the config properly for the forum by doing this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16