Skip to content

Commit

Permalink
Fronius Gen24/ Huawei Sun2000: add max charge power/rate (evcc-io#17691)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Dec 13, 2024
1 parent 140858b commit d4cb42f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
6 changes: 4 additions & 2 deletions templates/definition/meter/fronius-gen24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ params:
default: 502
- name: integer
deprecated: true
- name: maxacpower
- name: maxchargerate
advanced: true
- name: capacity
advanced: true
- name: maxacpower
render: |
type: custom
# sunspec model 203 (int+sf)/ 213 (float) meter
Expand Down Expand Up @@ -213,7 +215,7 @@ render: |
id: 1
value: 124:0:StorCtl_Mod
- source: const
value: -100 # %
value: -{{ .maxchargerate }} # %
set:
source: sunspec
uri: {{ .host }}:{{ .port }}
Expand Down
5 changes: 4 additions & 1 deletion templates/definition/meter/huawei-sun2000.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ params:
type: int
default: 1
advanced: true
- name: maxchargepower
default: 10000
advanced: true
- name: capacity
advanced: true
render: |
Expand Down Expand Up @@ -242,7 +245,7 @@ render: |
type: writesingle
encoding: uint16
- source: const
value: 10000 # W
value: {{ .maxchargepower }} # W
set:
source: modbus
{{- include "modbus" . | indent 12 }}
Expand Down
18 changes: 17 additions & 1 deletion util/templates/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,23 @@ params:
help:
en: Charger will enable charging for short time when vehicle is connected, irrespective of configured charge mode. This is useful for vehicles that require power supply when connecting.
de: Wallbox gibt kurzzeitige Ladefreigabe bei Fahrzeugverbindung. Das ermöglicht es Fahrzeugen, die eine Stromversorgung beim Anschließen benötigen, einen Fehlerzustand zu vermeiden.

- name: maxchargepower
type: int
description:
en: Maximum charge power (W)
de: Maximale Ladeleistung (W)
help:
en: Power limit for grid charging.
de: Leistungslimit für Netzladung.
- name: maxchargerate
type: int
description:
en: Maximum charge power (%)
de: Maximale Ladeleistung (%)
help:
en: Power limit for grid charging.
de: Leistungslimit für Netzladung.
default: 100
presets:
vehicle-base:
params:
Expand Down

0 comments on commit d4cb42f

Please sign in to comment.