Helper entity

Hi, I would like to show a positiv number as a negative.

Actually I thought I solve it via a helper and a sensor template.

{{(float(states.sensor.balkonkraftwerk_switch_0_power.state) * -1) | round(1) | abs()}}

Measure unit is „W“

But my used template/helper doesn’t work or I only get a positive figure.

Do you have any idea what I have to adjust?

Remove the abs or why you want to have it there?

{{ states('sensor.balkonkraftwerk_switch_0_power')|float(0)|round(1) * -1 }}

1 Like

Thank you!!!