Template sensor not showing up after definition in YAML

Hi,
I already have an entity that logs the solar energy production for each day.

What I want to do now is create another helper that displays the solar production total from yesterday. So I added this to my YAML.

Template: 
  - trigger:
      - platform: time
        at: "23:59:55"
    sensor:
      - name: "solar_production_yesterday"
        unique_id: helper.solar.production.yesterday
        state: >
          {{ states('sensor.helper_solar_production_daily') }}
        state_class: "total_increasing"
        unit_of_measurement: "kWh"

After restarting nothing is showing up in my entities. THe logs don’t show anything either. Any ideas what I am doing wrong?

BR

template: not Template:.

Make sure you only have one template: heading in your config file.

so here is what is actually in my YAML:

template:
  - sensor:
      # Stromzähler Keller Verbrauch
      - name: "meter.stromzaehler.verbrauch.keller"
        unique_id: "meter.stromzaehler.verbrauch.keller"
        unit_of_measurement: "kWh"
        device_class: "energy"
        state_class: "total_increasing"
        state: >-
          {{ float(states('sensor.tasmota_sm_1_8_0_2'))*1/1000 | round(3) }}
  - sensor:
      # Stromzähler Keller Erzeugung
      - name: "meter.stromzaehler.einspeisung.keller"
        unique_id: "meter.stromzaehler.einspeisung.keller"
        unit_of_measurement: "kWh"
        device_class: "energy"
        state_class: "total_increasing"
        state: >-
          {{ float(states('sensor.tasmota_sm_2_8_0_2')) *1/1000 | round(3) }}
  - trigger:
      - platform: time
        at: "23:59:55"
    sensor:
      - name: "solar_production_yesterday"
        unique_id: helper.solar.production.yesterday
        state: >
          {{ states('sensor.helper_solar_production_daily') }}
        state_class: "total_increasing"
        unit_of_measurement: "kWh"

The first two sensors/helpers are working fine but I cannot find the third one.

You realise it’ll be called

sensor.solar_production_yesterday

not

sensor.helper_solar_production_yesterday

?

What is the state of sensor.helper_solar_production_daily?