Rounding gives odd behaviour

What on earth am I doing wrong? I’m just trying to convert Watts to kW with a single digit of precision (showing 2 to show the value it start behaving weirdly)


Had needed some brackets!

{{ (states('sensor.battery_charge_discharge_power') | float(0) *0.001) | round(1)  }}

If you’re going to math inside of templates ALWAYS use brackets… learned that the hard way myself. Filters are applied before the math so your round() was rounding 0.001 and not the result of the equation. See Templating docs.