Help with template sensors

Hi there, help me please! I have made a template sensors but only first exist another 5 not. Is there any problem with the config

template:
    sensor:
      - name: "L1 current"
        unit_of_measurement: "A"
        state: >
          {% set l1current = states('sensor.sensorcur1') | float %}
          {{ ((l1current) / 10) | round(1, default=0) }}

      - name: "L2 current"
        unit_of_measurement: "A"
        state: >
          {% set l2current = states('sensor.sensorcur2') | float %}
          {{ ((l2current) / 10) | round(1, default=0) }}
          
      - name: "L3 current"
        unit_of_measurement: "A"
        state: >
          {% set l3current = states('sensor.sensorcur3') | float %}
          {{ ((l3current) / 10) | round(1, default=0) }}
          
      - name: "L1 current power"
        unit_of_measurement: "kW"
        state: >
          {% set l1current = states('sensor.sensorcur1') | float %}
          {% set l1vol = states('sensor.sensorvol1') | float %}          
          {{ ((l1current) * (l1vol)) / 1000 ) | round(1, default=0) }}
          
      - name: "L2 current power"
        unit_of_measurement: "kW"
        state: >
          {% set l2current = states('sensor.sensorcur2') | float %}
          {% set l2vol = states('sensor.sensorvol2') | float %}          
          {{ ((l2current) * (l2vol)) / 1000 ) | round(1, default=0) }}
          
      - name: "L3 current power"
        unit_of_measurement: "kW"
        state: >
          {% set l3current = states('sensor.sensorcur3') | float %}
          {% set l3vol = states('sensor.sensorvol3') | float %}          
          {{ ((l3current) * (l3vol)) / 1000 ) | round(1, default=0) }}

You aren’t providing defaults for float or an availability template. Add a default to float or add an availability template.

exactly like that for float…

can you show me a sample ?