Round(2) doesn't work anymore?

Hi
I’ve created a few sensor_templates - but noticed, that the function round() doesn’t work anymore… ?!

grafik

# Calculation of Total Savings in €
    solaredge_total_savings:
      friendly_name: 'Total Savings €'
      unit_of_measurement: '€'
      value_template: >-
        {{ states('sensor.solaredge_total_selfconsumption_kwh') * 28.20 / 100 | round(2) }}

can anyone give me an advice, what’s wrong here?
Thanks :slight_smile:

I think you are rounding 100

Try

# Calculation of Total Savings in €
    solaredge_total_savings:
      friendly_name: 'Total Savings €'
      unit_of_measurement: '€'
      value_template: >-
        {{ (states('sensor.solaredge_total_selfconsumption_kwh') * 28.20 / 100) | round(2) }}

lool … I’m stupid…

Thanks :smiley: