From 0b20540f7485d56429c93867c7e25cafdd34c9b5 Mon Sep 17 00:00:00 2001 From: FrankvdAa Date: Sun, 24 May 2026 10:20:45 +0200 Subject: [PATCH] Enphase: modbus interface (SunSpec 700) (#30121) Co-authored-by: andig Co-authored-by: andig Co-authored-by: Claude Opus 4.7 (1M context) --- .../definition/meter/enphase-modbus.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/definition/meter/enphase-modbus.yaml diff --git a/templates/definition/meter/enphase-modbus.yaml b/templates/definition/meter/enphase-modbus.yaml new file mode 100644 index 000000000..af30fe624 --- /dev/null +++ b/templates/definition/meter/enphase-modbus.yaml @@ -0,0 +1,51 @@ +template: enphase-modbus +products: + - brand: Enphase + description: + generic: IQ Gateway (Modbus) +requirements: + description: + en: | + Requires Enphase support to enable modbus functionality on IQ Gateway. + de: | + Erfordert Enphase-Unterstützung, um die Modbus-Funktionalität auf dem IQ Gateway zu aktivieren. +params: + - name: usage + choice: ["pv"] + - name: modbus + choice: ["tcpip"] + id: 1 +render: | + type: custom + # sunspec model 701 (DER AC Measurement) + {{- if eq .usage "pv" }} + power: + source: sunspec + {{- include "modbus" . | indent 2 }} + value: 701:W + energy: + source: sunspec + {{- include "modbus" . | indent 2 }} + value: 701:TotWhInj + scale: 0.001 + currents: + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:AL1 + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:AL2 + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:AL3 + voltages: + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:VL1 + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:VL2 + - source: sunspec + {{- include "modbus" . | indent 4 }} + value: 701:VL3 + {{- end }}