FoxESS H3: add battery control (#13368)
This commit is contained in:
parent
2d613d6e46
commit
49d1e32b98
1 changed files with 23 additions and 0 deletions
|
|
@ -3,12 +3,22 @@ products:
|
|||
- brand: FoxESS
|
||||
description:
|
||||
generic: H3 Series Hybrid Inverter
|
||||
capabilities: ["battery-control"]
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "battery"]
|
||||
- name: modbus
|
||||
choice: ["rs485", "tcpip"]
|
||||
id: 247
|
||||
- name: capacity
|
||||
advanced: true
|
||||
# battery control
|
||||
- name: minsoc
|
||||
type: number
|
||||
advanced: true
|
||||
- name: maxsoc
|
||||
type: number
|
||||
advanced: true
|
||||
render: |
|
||||
type: custom
|
||||
{{- if eq .usage "grid" }}
|
||||
|
|
@ -77,4 +87,17 @@ render: |
|
|||
address: 31038 # Soc
|
||||
type: holding
|
||||
decode: int16
|
||||
limitsoc:
|
||||
source: convert
|
||||
convert: float2int
|
||||
set:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 4 }}
|
||||
register:
|
||||
address: 41009 # limit soc
|
||||
type: writesingle
|
||||
decode: uint16
|
||||
capacity: {{ .capacity }} # kWh
|
||||
minsoc: {{ .minsoc }} # %
|
||||
maxsoc: {{ .maxsoc }} # %
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue