Skip to content

Commit

Permalink
Solis Hybrid: add battery control
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 7, 2024
1 parent 2fb046d commit ec86c59
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions templates/definition/meter/solis-hybrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,98 @@ render: |
address: 33139 # Battery capacity SOC
type: input
decode: uint16
batterymode:
source: switch
switch:
- case: 1 # normal
# Self-Use
set:
source: sequence
set:
- source: const
value: 0xBE # ON
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43007 # ON/OFF
type: writeholding
decode: uint16
- source: const
value: 12 #
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43073 # mode
type: writeholding
decode: uint16
- source: const
value: 700 # 70A
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43117 # max current
type: writeholding
decode: uint16
- case: 2 # hold
# Enable grid charging with 10% (default) target soc to prevent discharge
set:
source: sequence
set:
- source: const
value: 0xDE # OFF
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43007 # ON/OFF
type: writeholding
decode: uint16
- case: 3 # charge
# Enable grid charging with 100% target soc
set:
source: sequence
set:
#- source: const
# value: 190 # 0xBE-ON 0xDE-OFF
# set:
# source: modbus
# id: 1
# uri: 192.168.188.89:502
# rtu: false
# timeout: 5s
# register:
# address: 43007 # ON/OFF
# type: writeholding
# decode: uint16
- source: const
value: 48
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43073 # mode
type: writeholding
decode: uint16
- source: const
value: -15000 # reason unknown
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43074 # Storage control switch value
type: writeholding
decode: int16
- source: const
value: 500 # 50A
set:
source: modbus
{{- include "modbus" . | indent 10 }}
register:
address: 43117 # max current
type: writeholding
decode: uint16
capacity: {{ .capacity }} # kWh
{{- end }}

1 comment on commit ec86c59

@hbpv
Copy link
Contributor

@hbpv hbpv commented on ec86c59 Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andig du hattest hier schon angefangen.. ich weis nicht ob die Register noch und auch für das Thema solis-hybrid-s.yaml ..,
siehe gerade gesprochen in #19435 (Thema Batteriesperre)

Solis-Hybrid-Inverter-Modbus.pdf

Please sign in to comment.