Help needed with custom sensor enegry dashbaord

I am trying to create a sensor so the energy dashbaord can use time of use pricing. My energy provider currently has three different rates depending on time of day.
I have got these dispalyed as a text helper and working correctly at right time. I am now trying to create a sesnor that will use these values so i can link them to my energy dashboard. Using this in my yaml but sensor will not show up.

I am also happy to hear any otherway to set this up.


name: "energy_price4"

friendly_name: Current Energy Cost

unit_of_measurement: AUD

device_class: monetary

value_template: "{{ (states('input_text.energy_price_kwh') | float) | round (2) }}"