From b35c69a15e3cf0ff0ab90543aad3e98e0d89a6d7 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 5 Sep 2022 10:03:45 +0200 Subject: [PATCH] Add Solarmax inverter (#4313) --- templates/definition/meter/solarmax.yaml | 22 ++++++++++++++++++++++ templates/docs/meter/solarmax_0.yaml | 15 +++++++++++++++ templates/evcc.io/brands.json | 1 + 3 files changed, 38 insertions(+) create mode 100644 templates/definition/meter/solarmax.yaml create mode 100644 templates/docs/meter/solarmax_0.yaml diff --git a/templates/definition/meter/solarmax.yaml b/templates/definition/meter/solarmax.yaml new file mode 100644 index 000000000..d7190a5bc --- /dev/null +++ b/templates/definition/meter/solarmax.yaml @@ -0,0 +1,22 @@ +template: solarmax +covers: ["solarmax"] +products: + - brand: Solarmax + description: + generic: Inverter +params: + - name: usage + choice: ["pv"] + - name: modbus + choice: ["tcpip"] +render: | + type: custom + {{- if eq .usage "pv" }} + power: + source: modbus + {{- include "modbus" . | indent 2 }} + register: + address: 4151 # Total DC power + type: holding + decode: uint32s + {{- end }} diff --git a/templates/docs/meter/solarmax_0.yaml b/templates/docs/meter/solarmax_0.yaml new file mode 100644 index 000000000..782b700ee --- /dev/null +++ b/templates/docs/meter/solarmax_0.yaml @@ -0,0 +1,15 @@ +product: + brand: Solarmax + description: Inverter +render: + - usage: pv + default: | + type: template + template: solarmax + usage: pv + + # Modbus TCP + modbus: tcpip + id: 1 + host: 192.0.2.2 # Hostname + port: 502 # Port diff --git a/templates/evcc.io/brands.json b/templates/evcc.io/brands.json index 83966a2b8..55d3a7573 100644 --- a/templates/evcc.io/brands.json +++ b/templates/evcc.io/brands.json @@ -105,6 +105,7 @@ "Siemens", "SMA", "SolarEdge", + "Solarmax", "Solarwatt", "Solax", "Sonnenbatterie",