Trying to configure a Pulse energy sensor into a volume sensor

Hello,

I have installed a zigbee pulse module. I am trying to monitor a volume.

Each Pulse is for 1 L.
currently the sensor is configured for KWh

I have tried to make a Template but I don’t seem to fully understand how it works.

Here’s the template i’ve made :

template:
  - sensor: 
    - name: Consommation eau
      unit_of_measurement: L
      device_class: water
      state_class: total_increasing
      state: "{{states('sensor.compteur_d_eau_summation_delivered') }}"

But it’s shows like this :

image

does any one know how to fix this ? Hot to print for example : " 5 Liters"