diff --git a/Home Assistant example/configuration.yaml b/Home Assistant example/configuration.yaml index 0cdb727..1d2a900 100644 --- a/Home Assistant example/configuration.yaml +++ b/Home Assistant example/configuration.yaml @@ -92,9 +92,9 @@ mqtt: state_class: measurement value_template: > {% if value_json.systemIO_power > (65535 / 2) %} - {{ -(65535 - value_json.systemIO_power) * 10 }} + {{ (65535 - value_json.systemIO_power) * 10 }} {% else %} - {{ (value_json.systemIO_power) * 10 }} + {{ -(value_json.systemIO_power) * 10 }} {% endif %} - name: "inverter_battery_discharge"