Revert "Solis Hybris S: fix battery power" (#25696)
This commit is contained in:
parent
312b838db3
commit
0070476917
1 changed files with 19 additions and 7 deletions
|
|
@ -118,13 +118,25 @@ render: |
|
|||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
type: input
|
||||
address: 33149 # Battery power
|
||||
decode: int32
|
||||
scale: -1
|
||||
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
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue