Problemes avec les kWh et le tableau Energie

Salut,
j’ai fais comme telle:

      - name: 'Energie home instentané'
        unique_id: energy_home_instentane
        unit_of_measurement: "W"
        state: >-
          {% set SUM = states('sensor.zlinky_current_summation_derived_one_minute')|int(0) |round(0) %}
          {% set VMC1 = states('sensor.shellyplus2pm_e465b8b25d94_switch_0_power')|int(0) |round(0) %}
          {% set VMC2 = states('sensor.shellyplus2pm_e465b8b25d94_switch_1_power')|int(0) |round(0) %}
          {% set FP = states('sensor.0xa4c1383a5eeb5542_power')|int(0) |round(0) %}
          {% set PP = states('sensor.0xa4c138244f6e91e3_power')|int(0) |round(0) %}
          {% set TP = states('sensor.0xa4c138d4c17833b3_power')|int(0) |round(0) %}
          {% set MLP = states('sensor.0xa4c138c9cc1b6472_power')|int(0) |round(0) %}
          {{ SUM - ( VMC1 + VMC2 + FP + PP + TP + MLP ) |int(0) |round(0) }}
        availability: > 
          {{ states('sensor.zlinky_current_summation_derived_one_minute')|is_number
          and states('sensor.shellyplus2pm_e465b8b25d94_switch_0_power')|is_number
          and states('sensor.shellyplus2pm_e465b8b25d94_switch_1_power')|is_number
          and states('sensor.0xa4c138c9cc1b6472_power')|is_number
          and states('sensor.0xa4c138244f6e91e3_power')|is_number
          and states('sensor.0xa4c138d4c17833b3_power')|is_number
          and states('sensor.0xa4c138c9cc1b6472_power')|is_number }}
1 « J'aime »