Skip to content

Commit

Permalink
GoodWe-Hybrid: fix registers (#12854)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Mar 10, 2024
1 parent b780768 commit 7660159
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions templates/definition/meter/goodwe-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,17 @@ render: |
{{- end }}
{{- if eq .usage "pv" }}
power:
source: calc
add:
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35105 # Ppv1 PV1 Power
type: holding
decode: uint32nan
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35109 # Ppv2 PV2 Power
type: holding
decode: uint32nan
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35113 # Ppv3 PV3 Power
type: holding
decode: uint32nan
- source: modbus
{{- include "modbus" . | indent 4 }}
register: # manual non-sunspec register configuration
address: 35117 # Ppv4 PV4 Power
type: holding
decode: uint32nan
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35301 # PV Total Power
type: holding
decode: uint32nan
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35191 # PV E-Total Total PV Energy
address: 35191 # PV Energy-Total
type: holding
decode: uint32
scale: 0.1
Expand All @@ -74,21 +54,21 @@ render: |
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35183 # Pbattery1 First group battery power
address: 35182 # Battery1 Power
type: holding
decode: int16
decode: int32
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 37007 # SOC First group battery capacity
address: 37007 # SOC
type: holding
decode: uint16
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
register: # manual non-sunspec register configuration
address: 35209 # E-BatteryDischarge Discharge energy
address: 35209 # Energy-Battery Discharge
type: holding
decode: uint32
scale: 0.1
Expand Down

0 comments on commit 7660159

Please sign in to comment.