FoxESS H3: add battery control (#13368)

This commit is contained in:
thse22 2024-04-12 08:35:28 +02:00 • committed by GitHub
parent 2d613d6e46
commit 49d1e32b98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}