Skip to content

Commit

Permalink
Add SAJ H2 hybrid inverter (#10564)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Oct 30, 2023
1 parent f5bc2ab commit b87fb6e
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
100 changes: 100 additions & 0 deletions templates/definition/meter/saj-h2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
template: saj-h2
products:
- brand: SAJ
description:
generic: H2 Series Hybrid Solar Inverter
params:
- name: usage
choice: ["grid", "pv", "battery"]
- name: modbus
choice: ["rs485"]
baudrate: 115200
comset: 8N1
- name: capacity
advanced: true
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40A7 # TotalGridPowerWatt
type: holding
decode: int16
currents:
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x4032 # RGridCurr
type: holding
decode: int16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x4039 # SGridCurr
type: holding
decode: int16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x4040 # TGridCurr
type: holding
decode: int16
scale: 0.01
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40FD # Total_FeedInEnergy
type: holding
decode: uint32
scale: 0.01
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40A5 # TotalPVPower
type: holding
decode: int16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40C5 # Total_PVEnergy
type: holding
decode: uint32
scale: 0.01
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40A6 # TotalBatteryPower
type: holding
decode: int16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0x40D5 # Total_BatDisEnergy
type: holding
decode: uint32
scale: 0.01
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 0xA00C # Bat1SOC
type: holding
decode: uint16
scale: 0.01
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions templates/evcc.io/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"Qcells",
"RCT",
"Saia-Burgess Controls",
"SAJ",
"SAX",
"Schneider Electric",
"SENEC",
Expand Down Expand Up @@ -174,6 +175,7 @@
"Powerfox",
"Qcells",
"RCT",
"SAJ",
"SAX",
"SENEC",
"Senergy",
Expand Down

0 comments on commit b87fb6e

Please sign in to comment.