diff --git a/templates/definition/meter/alpha-ess-smile.yaml b/templates/definition/meter/alpha-ess-smile.yaml index 564caa1a72..9569c7a5ea 100644 --- a/templates/definition/meter/alpha-ess-smile.yaml +++ b/templates/definition/meter/alpha-ess-smile.yaml @@ -28,6 +28,7 @@ params: default: 95 type: int advanced: true + - name: maxacpower render: | type: custom {{- if eq .usage "grid" }} @@ -123,6 +124,7 @@ render: | type: holding decode: uint32 scale: 0.01 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/deye-hybrid-3p.yaml b/templates/definition/meter/deye-hybrid-3p.yaml index 2b2c09ef5e..cd423a82be 100644 --- a/templates/definition/meter/deye-hybrid-3p.yaml +++ b/templates/definition/meter/deye-hybrid-3p.yaml @@ -26,6 +26,7 @@ params: type: int default: 95 advanced: true + - name: maxacpower render: | type: custom {{- if eq .usage "grid" }} @@ -103,6 +104,7 @@ render: | type: holding decode: uint32s scale: 0.1 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/deye-hybrid-hp3.yaml b/templates/definition/meter/deye-hybrid-hp3.yaml index fb5dcd0e31..08b73c0b77 100644 --- a/templates/definition/meter/deye-hybrid-hp3.yaml +++ b/templates/definition/meter/deye-hybrid-hp3.yaml @@ -25,6 +25,7 @@ params: type: int default: 95 advanced: true + - name: maxacpower render: | type: custom {{- if eq .usage "grid" }} @@ -106,6 +107,7 @@ render: | type: holding decode: uint32s scale: 0.1 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/fox-ess-h3.yaml b/templates/definition/meter/fox-ess-h3.yaml index e9ddc36d92..2429279e99 100644 --- a/templates/definition/meter/fox-ess-h3.yaml +++ b/templates/definition/meter/fox-ess-h3.yaml @@ -19,6 +19,7 @@ params: - name: maxsoc type: int advanced: true + - name: maxacpower render: | type: custom {{- if eq .usage "grid" }} @@ -71,6 +72,7 @@ render: | address: 31005 # PV2 type: holding decode: int16 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/huawei-smartlogger.yaml b/templates/definition/meter/huawei-smartlogger.yaml index ffafd9869d..55da955008 100644 --- a/templates/definition/meter/huawei-smartlogger.yaml +++ b/templates/definition/meter/huawei-smartlogger.yaml @@ -18,6 +18,7 @@ params: default: 15s - name: capacity advanced: true + - name: maxacpower render: | type: custom {{- if eq .usage "grid" }} @@ -84,6 +85,7 @@ render: | type: holding decode: uint32 scale: 0.1 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/huawei-sun2000.yaml b/templates/definition/meter/huawei-sun2000.yaml index a51725c914..7ecfc35016 100644 --- a/templates/definition/meter/huawei-sun2000.yaml +++ b/templates/definition/meter/huawei-sun2000.yaml @@ -32,6 +32,7 @@ params: advanced: true - name: capacity advanced: true + - name: maxacpower - name: forceaccharging default: false advanced: true @@ -110,6 +111,7 @@ render: | type: holding decode: uint32nan scale: 0.01 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/sofarsolar-g3.yaml b/templates/definition/meter/sofarsolar-g3.yaml index baac1cd66a..95798cd654 100644 --- a/templates/definition/meter/sofarsolar-g3.yaml +++ b/templates/definition/meter/sofarsolar-g3.yaml @@ -29,6 +29,7 @@ params: deprecated: true - name: capacity advanced: true + - name: maxacpower - name: defaultmode help: de: Standardmodus für die aktive Batteriesteuerung. Gültige Werte sind 0 (Eigenbedarfsmodus), 1 (Nutzungszeitmodus), 2 (Zeitmodus), 4 (Peak-shaving Modus) @@ -125,6 +126,7 @@ render: | type: holding decode: uint32 scale: 0.1 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: diff --git a/templates/definition/meter/solarmax-maxstorage.yaml b/templates/definition/meter/solarmax-maxstorage.yaml index 7bf178ad12..d9858b65dc 100644 --- a/templates/definition/meter/solarmax-maxstorage.yaml +++ b/templates/definition/meter/solarmax-maxstorage.yaml @@ -17,6 +17,7 @@ params: id: 1 - name: capacity advanced: true + - name: maxacpower # battery control - name: watchdog type: duration @@ -41,6 +42,7 @@ render: | address: 110 # PV-Leistung MAX.STORAGE type: input decode: int32s + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} source: modbus diff --git a/templates/definition/meter/victron-energy.yaml b/templates/definition/meter/victron-energy.yaml index a046bd1b6a..2eeb159007 100644 --- a/templates/definition/meter/victron-energy.yaml +++ b/templates/definition/meter/victron-energy.yaml @@ -17,6 +17,7 @@ params: default: 502 - name: capacity advanced: true + - name: maxacpower - name: meterid # grid meter VRM instance type: int usages: ["grid"] @@ -138,6 +139,7 @@ render: | address: 850 # DC pv power type: input decode: uint16 + maxacpower: {{ .maxacpower }} {{- end }} {{- if eq .usage "battery" }} power: