Skip to content

Commit

Permalink
Add SAX Homespeicher (evcc-io#6134)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Feb 16, 2023
1 parent b0ff432 commit 93c7c6a
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
41 changes: 41 additions & 0 deletions templates/definition/meter/sax.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
template: sax
products:
- brand: SAX
description:
generic: Homespeicher
params:
- name: usage
choice: ["grid", "battery"]
- name: modbus
choice: ["tcpip"]
port: 3600
render: |
type: custom
{{- if eq .usage "grid" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
# register details
register:
address: 48 # Leistung des Smartmeters
type: holding
decode: int16
{{- end }}
{{- if eq .usage "battery" }}
power:
source: modbus
{{- include "modbus" . | indent 2 }}
# register details
register:
address: 47 # Leistung P vom Speicher. (Messwert)
type: holding
decode: int16
soc:
source: modbus
{{- include "modbus" . | indent 2 }}
# register details
register:
address: 46 # SOC vom Speicher (Messwert)
type: holding
decode: uint16
{{- end }}
26 changes: 26 additions & 0 deletions templates/docs/meter/sax_0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
product:
brand: SAX
description: Homespeicher
render:
- usage: grid
default: |
type: template
template: sax
usage: grid
# Modbus TCP
modbus: tcpip
id: 1
host: 192.0.2.2 # Hostname
port: 3600 # Port
- usage: battery
default: |
type: template
template: sax
usage: battery
# Modbus TCP
modbus: tcpip
id: 1
host: 192.0.2.2 # Hostname
port: 3600 # Port
2 changes: 2 additions & 0 deletions templates/evcc.io/brands.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"Powerfox",
"Qcells",
"RCT",
"SAX",
"SENEC",
"Shelly",
"Siemens",
Expand Down Expand Up @@ -116,6 +117,7 @@
"Powerfox",
"Qcells",
"RCT",
"SAX",
"SENEC",
"Senergy",
"Shelly",
Expand Down

0 comments on commit 93c7c6a

Please sign in to comment.