Solis Hybris S: fix battery power (#24024)
This commit is contained in:
parent
3e35a9efa7
commit
6a0cdbb724
1 changed files with 7 additions and 19 deletions
|
|
@ -115,25 +115,13 @@ render: |
|
|||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
power:
|
||||
source: calc
|
||||
mul:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 4 }}
|
||||
register:
|
||||
type: input
|
||||
address: 33149 # Battery power
|
||||
decode: uint32
|
||||
- source: calc
|
||||
add:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 6 }}
|
||||
register:
|
||||
type: input
|
||||
address: 33135 # Battery current direction
|
||||
decode: uint16 # 0:charge, 1:discharge
|
||||
scale: 2
|
||||
- source: const
|
||||
value: -1
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
type: input
|
||||
address: 33149 # Battery power
|
||||
decode: int32
|
||||
scale: -1
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue