Skip to content

Commit

Permalink
FoxESS H3: add battery control (#13368)
Browse files Browse the repository at this point in the history
  • Loading branch information
thse22 authored Apr 12, 2024
1 parent 2d613d6 commit 49d1e32
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions templates/definition/meter/fox-ess-h3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down Expand Up @@ -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 }}

0 comments on commit 49d1e32

Please sign in to comment.