Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106179

Round(2) doesn't work anymore?

$
0
0

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:

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>