Skip to content

Commit

Permalink
Add Ginlong Solis inverter (Modbus) (evcc-io#10889)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Jan 7, 2024
1 parent 03661b6 commit 38cbd3e
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 9 deletions.
9 changes: 0 additions & 9 deletions templates/definition/meter/solarman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ products:
- brand: IGEN Tech
description:
generic: Solarman Logger
- brand: Deye
description:
generic: SUN series micro inverter
- brand: Bosswerk
description:
generic: MI series micro inverter
- brand: Ginlong
description:
generic: Solis inverter
params:
- name: usage
choice: ["pv"]
Expand Down
122 changes: 122 additions & 0 deletions templates/definition/meter/solis-hybrid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
template: solis-hybrid
products:
- brand: Ginlong
description:
generic: Solis Hybrid Inverter
params:
- name: usage
choice: ["grid", "pv", "battery"]
allinone: true
- name: modbus
choice: ["rs485"]
baudrate: 9600
id: 1
- name: capacity
advanced: true
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33263 # Meter total active power
type: input
decode: int32
scale: -1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33283 # Meter total active energy from grid
type: input
decode: uint32
scale: 0.01
currents:
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33252 # Meter ac current A
type: input
decode: uint16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33254 # Meter ac current B
type: input
decode: uint16
scale: 0.01
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33256 # Meter ac current C
type: input
decode: uint16
scale: 0.01
powers:
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33257 # Meter active power A
type: input
decode: int32
scale: -1
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33259 # Meter active power B
type: input
decode: int32
scale: -1
- source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33261 # Meter active power C
type: input
decode: int32
scale: -1
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
type: input
address: 33057 # Total DC output power (PV Power)
decode: uint32
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33029 # Total energy generation
type: input
decode: uint32
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
type: input
address: 33149 # Battery power
decode: int32
scale: -1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33165 # Battery total discharge energy
type: input
decode: uint32
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 33139 # Battery capacity SOC
type: input
decode: uint16
{{- if .capacity }}
capacity: {{ .capacity }} # kWh
{{- end }}
{{- end }}
48 changes: 48 additions & 0 deletions templates/definition/meter/solis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
template: solis
products:
- brand: Ginlong
description:
generic: Solis Inverter
params:
- name: usage
choice: ["grid", "pv"]
- name: modbus
choice: ["rs485"]
baudrate: 9600
id: 1
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 3262 # Meter Total P
type: input
decode: int32
scale: -1
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 3282 # Meter grid import active energy
type: input
decode: uint32
scale: 0.01
{{- end }}
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
type: input
address: 3004 # Active power
decode: uint32
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 3008 # Total energy
type: input
decode: uint32
{{- end }}

0 comments on commit 38cbd3e

Please sign in to comment.