Add SunSpec meters for chargers (#21977)

Signed-off-by: Marcel Goerentz <m.goerentz@t-online.de>
This commit is contained in:
Marcel Goerentz 2025-06-22 11:01:25 +02:00 • committed by GitHub
parent aa77183bc8
commit a6925c61a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,13 +9,13 @@ products:
en: Smartmeter (via Inverter)
params:
- name: usage
choice: ["grid", "pv"]
choice: ["grid", "pv", "charge"]
- name: modbus
choice: ["tcpip"]
render: |
type: custom
# sunspec model 201 or 203 (int+sf)/ 211 or 213 (float) meter
{{- if eq .usage "grid" }}
{{- if or (eq .usage "grid") (eq .usage "charge") }}
power:
source: sunspec
uri: {{ .host }}:{{ .port }}