From cd7d3a8ba0323ca48feae11c746b996d6b7d6101 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Sun, 14 Apr 2024 14:31:52 +0200 Subject: [PATCH] fronius-ohmpilot: swap power sign Fixes #13405 --- templates/definition/meter/fronius-ohmpilot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/definition/meter/fronius-ohmpilot.yaml b/templates/definition/meter/fronius-ohmpilot.yaml index 959569566..a287f84e4 100644 --- a/templates/definition/meter/fronius-ohmpilot.yaml +++ b/templates/definition/meter/fronius-ohmpilot.yaml @@ -18,7 +18,7 @@ render: | power: source: http uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi - jq: if .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total == null then 0 else .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total * -1 end + jq: if .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total == null then 0 else .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total end soc: source: http uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi