Skip to content

Commit

Permalink
sma-hybrid: fix pv power
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Jan 8, 2024
1 parent daee304 commit 2ecb4df
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions templates/definition/meter/sma-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ render: |
type: custom
{{- if eq .usage "pv" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
register:
address: 30773 # SMA Modbus Profile: DcMs.Watt
type: input
decode: int32nan
source: calc
add:
- source: modbus
{{- include "modbus" . | indent 6 }}
register: # manual non-sunspec register configuration
address: 30773 # SMA Modbus Profile: DC power input [1]
type: holding
decode: int32nan
- source: modbus
{{- include "modbus" . | indent 6 }}
register: # manual non-sunspec register configuration
address: 30961 # SMA Modbus Profile: DC power input [2]
type: holding
decode: int32nan
energy:
source: modbus
{{- include "modbus" . | indent 2 }}
Expand Down

0 comments on commit 2ecb4df

Please sign in to comment.