From 1e98f3df147bfa3c605e70e16f1d752dc139668b Mon Sep 17 00:00:00 2001 From: andig Date: Wed, 7 Feb 2024 08:10:25 +0100 Subject: [PATCH] Add Fronius Ohmpilot (#12100) --- .../definition/meter/fronius-ohmpilot.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/definition/meter/fronius-ohmpilot.yaml diff --git a/templates/definition/meter/fronius-ohmpilot.yaml b/templates/definition/meter/fronius-ohmpilot.yaml new file mode 100644 index 0000000000..19ceb0abaf --- /dev/null +++ b/templates/definition/meter/fronius-ohmpilot.yaml @@ -0,0 +1,19 @@ +template: fronius-ohmpilot +products: + - brand: Fronius + description: + generic: Ohmpilot +params: + - name: usage + choice: ["aux"] + - name: host +render: | + type: custom + power: + source: http + uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi + jq: if .Body.Data.Smartloads.Ohmpilots."720896".P_AC_Total == null then 0 else .Body.Data.Smartloads.Ohmpilots."720896".P_AC_Total * -1 end + soc: + source: http + uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi + jq: if .Body.Data.Smartloads.Ohmpilots."720896".Temperature == null then 0 else .Body.Data.Smartloads.Ohmpilots."720896".Temperature end