Skip to content

Commit

Permalink
Add Fronius Ohmpilot (#12100)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Feb 7, 2024
1 parent 527c902 commit 1e98f3d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/definition/meter/fronius-ohmpilot.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1e98f3d

Please sign in to comment.