diff --git a/templates/definition/meter/fox-ess-h3.yaml b/templates/definition/meter/fox-ess-h3.yaml index 48a7313e96..1deb6025e8 100644 --- a/templates/definition/meter/fox-ess-h3.yaml +++ b/templates/definition/meter/fox-ess-h3.yaml @@ -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 }}