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",