Add Anker SOLIX Solarbank Max AC (#31696)
This commit is contained in:
parent
d4430248a9
commit
3158ff16ef
1 changed files with 90 additions and 0 deletions
90
templates/definition/meter/anker-solix-solarbank-max-ac.yaml
Normal file
90
templates/definition/meter/anker-solix-solarbank-max-ac.yaml
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
template: anker-solix-solarbank-max-ac
|
||||
products:
|
||||
- brand: Anker
|
||||
description:
|
||||
generic: SOLIX Solarbank Max AC
|
||||
requirements:
|
||||
description:
|
||||
de: |
|
||||
Die Modbus-TCP-Schnittstelle muss in der Anker-App freigeschaltet werden.
|
||||
en: |
|
||||
The Modbus TCP interface must be enabled in the Anker app.
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "battery"]
|
||||
- name: modbus
|
||||
choice: ["tcpip"]
|
||||
port: 502
|
||||
id: 1
|
||||
- name: maxacpower
|
||||
- preset: battery-params
|
||||
render: |
|
||||
type: custom
|
||||
{{- if eq .usage "grid" }}
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10012 # Grid Power (W, positive = import, negative = export)
|
||||
type: input
|
||||
decode: int32
|
||||
{{- end }}
|
||||
{{- if eq .usage "pv" }}
|
||||
power:
|
||||
source: calc
|
||||
add:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 6 }}
|
||||
register:
|
||||
address: 10002 # PV Power (W)
|
||||
type: input
|
||||
decode: int32
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 6 }}
|
||||
register:
|
||||
address: 10004 # Thirdparty PV Power (W)
|
||||
type: input
|
||||
decode: int32
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10018 # Total PV Generation (kWh)
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.1
|
||||
maxacpower: {{ .maxacpower }}
|
||||
{{- end }}
|
||||
{{- if eq .usage "battery" }}
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10008 # Battery Power (W, positive = discharging, negative = charging)
|
||||
type: input
|
||||
decode: int32
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10264 # Battery Total Discharge Energy (kWh)
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.1
|
||||
returnenergy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10262 # Battery Total Charge Energy (kWh)
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.1
|
||||
soc:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 10014 # SOC (%)
|
||||
type: input
|
||||
decode: uint16
|
||||
{{- include "battery-params" . }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue