evcc-io/templates/definition/meter/fronius-ohmpilot.yaml
andig 1830071730 Revert "chore: simplify"
This reverts commit 97ac1eec3f.
2024-12-08 12:03:37 +01:00

25 lines
813 B
YAML

template: fronius-ohmpilot
products:
- brand: Fronius
description:
generic: Ohmpilot
params:
- name: usage
choice: ["aux"]
- name: host
- name: key
description:
de: ID des Ohmpilot im SolarAPI
en: ID of the Ohmpilot in SolarAPI
default: 0
advanced: true
render: |
type: custom
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 end
soc:
source: http
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
jq: if .Body.Data.Smartloads.Ohmpilots."{{ .key }}".Temperature == null then 0 else .Body.Data.Smartloads.Ohmpilots."{{ .key }}".Temperature end