Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 173 additions & 2 deletions templates/definition/meter/alpha-ess-smile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ capabilities: ["battery-control"]
requirements:
description:
de: |
Die aktive Speichersteuerung nutzt die Dispatch-Register (0x0880–0x088A). Diese werden nicht im Flash gespeichert. In der App muss nichts konfiguriert werden; Netzlade-Zeitfenster, Entladereserve und Ladeschluss-SoC bleiben unverändert. Jeder Dispatch-Befehl läuft nach 120 s ab, falls evcc ihn nicht erneuert. Danach kehrt der Wechselrichter in den Normalbetrieb zurück.
Die aktive Speichersteuerung nutzt die Dispatch-Register (0x0880–0x088A). Diese werden nicht im Flash gespeichert. In der App muss nichts konfiguriert werden; Netzlade-Zeitfenster, Entladereserve und Ladeschluss-SoC bleiben unverändert. Jeder Dispatch-Befehl läuft nach 120 s ab, falls evcc ihn nicht erneuert. Danach kehrt der Wechselrichter in den Normalbetrieb zurück. "Laden verhindern" nutzt den Dispatch-Modus 19 (No Battery Charge), den laut AlphaESS nur bestimmte EMS-Versionen unterstützen (getestet mit SMILE-T10-HV, EMS V0.00.58). Die Entladung ins Netz erfolgt mit der maximalen Entladeleistung bis zum minimalen SoC; ohne maximale Entladeleistung gilt die maximale Ladeleistung.
en: |
Active battery control uses the dispatch registers (0x0880–0x088A). These are not stored in flash memory. No configuration in the app is required; grid charging time periods, discharge reserve and charge cut SoC are left untouched. Every dispatch command expires after 120 s unless evcc renews it. The inverter then returns to normal operation.
Active battery control uses the dispatch registers (0x0880–0x088A). These are not stored in flash memory. No configuration in the app is required; grid charging time periods, discharge reserve and charge cut SoC are left untouched. Every dispatch command expires after 120 s unless evcc renews it. The inverter then returns to normal operation. "Prevent charging" uses dispatch mode 19 (No Battery Charge), which according to AlphaESS only specific EMS versions support (tested on SMILE-T10-HV, EMS V0.00.58). Discharge to grid runs at the maximum discharge power down to the minimum SoC; without a maximum discharge power the maximum charge power is used.
discovery:
mac: ["BC97400", "70B3D57A2"]
protocols: [modbus]
Expand Down Expand Up @@ -352,5 +352,176 @@ render: |
address: 2176 # 0x0880 Dispatch start, written again last as the G3 and T10 were tested this way
type: writemultiple
decode: uint16
- case: 4 # holdcharge -> no charging, battery still covers consumption
# mode 19 is listed as "only for specifical EMS version" in AlphaESS Modbus/Server API Guide V1.0 EN (2022-11-11), table 1
set:
source: sequence
set:
- source: const
value: 1
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2176 # 0x0880 Dispatch start, written first: the B3 ignores parameters while the dispatch is stopped
type: writemultiple
decode: uint16
- source: const
value: 32000
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2177 # 0x0881 Dispatch active power (W, offset 32000: <32000 charge, >32000 discharge)
type: writemultiple
decode: int32
- source: const
value: 32000
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2179 # 0x0883 Dispatch reactive power (32000 = 0 var)
type: writemultiple
decode: int32
- source: const
value: 19
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2181 # 0x0885 Dispatch mode: 19 = no battery charge, charge power limited to the dispatch power (0 W)
type: writemultiple
decode: uint16
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2182 # 0x0886 Dispatch SoC target (unused in mode 19)
type: writemultiple
decode: uint16
- source: const
value: 120
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2183 # 0x0887 Dispatch duration (s), inverter returns to normal operation when it expires
type: writemultiple
decode: uint32
- source: const
value: 255
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2185 # 0x0889 Dispatch flow direction (255 = bidirectional)
type: writemultiple
decode: uint16
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2186 # 0x088A Dispatch PV switch (0 = default)
type: writemultiple
decode: uint16
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2176 # 0x0880 Dispatch start, written again last as the G3 and T10 were tested this way
type: writemultiple
decode: uint16
- case: 5 # discharge -> discharge to grid down to minsoc
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
Resolved
set:
source: sequence
set:
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2176 # 0x0880 Dispatch start, written first: the B3 ignores parameters while the dispatch is stopped
type: writemultiple
decode: uint16
- source: const
value: {{ add 32000 (.maxdischargepower | default .maxchargepower | int) }}
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2177 # 0x0881 Dispatch active power (W, offset 32000: <32000 charge, >32000 discharge)
type: writemultiple
decode: int32
- source: const
value: 32000
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2179 # 0x0883 Dispatch reactive power (32000 = 0 var)
type: writemultiple
decode: int32
- source: const
value: 2
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2181 # 0x0885 Dispatch mode: 2 = SoC control
type: writemultiple
decode: uint16
- source: const
value: {{ div (add (mul (.minsoc | default 0 | int) 5) 1) 2 }}
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2182 # 0x0886 Dispatch SoC target (0.4 %/bit, rounded up so discharge stops at or above minsoc)
type: writemultiple
decode: uint16
- source: const
value: 120
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2183 # 0x0887 Dispatch duration (s), inverter returns to normal operation when it expires
type: writemultiple
decode: uint32
- source: const
value: 255
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2185 # 0x0889 Dispatch flow direction (255 = bidirectional)
type: writemultiple
decode: uint16
- source: const
value: 0
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2186 # 0x088A Dispatch PV switch (0 = default)
type: writemultiple
decode: uint16
- source: const
value: 1
set:
source: modbus
{{- include "modbus" . | indent 12 }}
register:
address: 2176 # 0x0880 Dispatch start, written again last as the G3 and T10 were tested this way
type: writemultiple
decode: uint16
{{- include "battery-params" . }}
{{- end }}