Skip to content
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions templates/definition/meter/sigenergy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ params:
- name: id
default: 1
- name: maxacpower
- name: string
Comment thread
computeralex92 marked this conversation as resolved.
Outdated
type: choice
choice: ["0", "1", "2", "3", "4"]
Comment thread
computeralex92 marked this conversation as resolved.
Outdated
usages: ["pv"]
advanced: true
description:
de: PV String
en: PV String
help:
de: |
Nicht gesetzt oder 0 = Gesamtleistung aller Strings, 1-4 = ein einzelner String.
String-Zähler messen DC-Leistung (Spannung × Strom) und dienen nur der Überwachung. Als PV-Zähler der Site den Gesamtleistungs-Zähler (0) verwenden.
en: |
Unset or 0 = total power of all strings, 1-4 = one individual string.
String meters measure DC power (voltage × current) and are for monitoring only. Keep the total-power meter (0) as the site's PV meter.
Comment thread
computeralex92 marked this conversation as resolved.
Outdated
- preset: battery-params
render: |
type: custom
Expand Down Expand Up @@ -71,6 +86,27 @@ render: |
scale: 0.01
{{- end }}
{{- if eq .usage "pv" }}
{{- if and .string (ne .string "0") }}
power:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The energy value is missing here for each MPPT.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, but are you able to descibe what is missing here?

The power each MPPT is producing is getting calculated because there is no register produced by Sigenergy to getting the exact power number.

Or did I miss here something?

source: calc
mul:
- source: modbus
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
register:
address: {{ add 31027 (mul 2 (sub (int .string) 1)) }} # PV{{ .string }} voltage
type: holding
decode: int16
scale: 0.1
- source: modbus
uri: {{ joinHostPort .host .port }}
id: {{ .id }}
register:
address: {{ add 31028 (mul 2 (sub (int .string) 1)) }} # PV{{ .string }} current
type: holding
decode: int16
scale: 0.01
{{- else }}
power:
source: modbus
uri: {{ joinHostPort .host .port }}
Expand All @@ -81,6 +117,7 @@ render: |
decode: int32
maxacpower: {{ .maxacpower }} # W
{{- end }}
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
Expand Down
Loading