Skip to content

Commit

Permalink
Add Solarmax inverter (#4313)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Sep 5, 2022
1 parent 91314e8 commit b35c69a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/definition/meter/solarmax.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions templates/docs/meter/solarmax_0.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions templates/evcc.io/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"Siemens",
"SMA",
"SolarEdge",
"Solarmax",
"Solarwatt",
"Solax",
"Sonnenbatterie",
Expand Down

0 comments on commit b35c69a

Please sign in to comment.