Skip to content

Commit

Permalink
Fronius Solar API: refine battery control (evcc-io#11996)
Browse files Browse the repository at this point in the history
  • Loading branch information
berndkrannich authored Feb 3, 2024
1 parent 6e087cd commit 111b032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/definition/meter/fronius-solarapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ params:
- name: capacity
advanced: true
- name: user
required: false
default: customer
- name: password
required: false
render: |
Expand All @@ -32,6 +32,7 @@ render: |
source: http
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
jq: .Body.Data.Inverters."1".SOC
{{- if .password }}
batterymode:
source: switch
switch:
Expand Down Expand Up @@ -71,6 +72,7 @@ render: |
user: {{ .user }}
password: {{ .password }}
body: '{"timeofuse":[]}'
{{- end }}
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
Expand Down

0 comments on commit 111b032

Please sign in to comment.