Utility meter tariffs? How to hard code the price per Kwh

Am I able to set specific tariffs for peak/off-peak with this new integration and then apply this to specific entities/devices?

I added the utility into the config. yaml.
Added an automation for the times of peak/offpeak but got stuck at setting the price of each kwh for the 2 tariffs.
Documentation is a bit flakey imo.

For the pas 2 years I’ve been using this:

  - platform: template
    sensors:
      fronthouse_lights_cost_monthly:
        friendly_name: "Front house light monthly"
        value_template: >-
          {{ ((((states.sensor.front_house_lights_monthly.state | float) * 0.16296)) | round(2) )}}
        unit_of_measurement: "$"

Thanks