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