From f3fb1c1ae25571a3e9edfb82e95b8366a7290ba8 Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 15 Sep 2024 11:50:20 +0200 Subject: [PATCH] Fronius SolarApi: mark charge mode as not available (#16121) --- .../definition/meter/fronius-solarapi-v1.yaml | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/templates/definition/meter/fronius-solarapi-v1.yaml b/templates/definition/meter/fronius-solarapi-v1.yaml index 1aef223a5..78983f534 100644 --- a/templates/definition/meter/fronius-solarapi-v1.yaml +++ b/templates/definition/meter/fronius-solarapi-v1.yaml @@ -76,18 +76,22 @@ render: | user: {{ .user }} password: {{ .password }} body: '{"timeofuse":[{"Active":true,"Power":0,"ScheduleType":"DISCHARGE_MAX","TimeTable":{"Start":"00:00","End":"23:59"},"Weekdays":{"Mon":true,"Tue":true,"Wed":true,"Thu":true,"Fri":true,"Sat":true,"Sun":true}}]}' - - case: 3 # charge + - case: 3 # charge (not implemented -> normal) set: - source: http - uri: http://{{ .host }}/config/timeofuse - method: POST - headers: - - content-type: application/json - auth: - type: digest - user: {{ .user }} - password: {{ .password }} - body: '{"timeofuse":[]}' + source: sequence + set: + - source: http + uri: http://{{ .host }}/config/timeofuse + method: POST + headers: + - content-type: application/json + auth: + type: digest + user: {{ .user }} + password: {{ .password }} + body: '{"timeofuse":[]}' + - source: error + error: ErrNotAvailable {{- end }} capacity: {{ .capacity }} # kWh {{- end }}