Fronius Solar API: refine battery control (#11996)

This commit is contained in:
Bernd Krannich 2024-02-03 11:48:13 +01:00 • committed by GitHub
parent 6e087cd20e
commit 111b032778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ params:
- name: capacity
advanced: true
- name: user
required: false
default: customer
- name: password
required: false
render: |
@ -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:
@ -71,6 +72,7 @@ render: |
user: {{ .user }}
password: {{ .password }}
body: '{"timeofuse":[]}'
{{- end }}
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}