diff --git a/templates/definition/meter/sax.yaml b/templates/definition/meter/sax.yaml new file mode 100644 index 0000000000..b2f09b441b --- /dev/null +++ b/templates/definition/meter/sax.yaml @@ -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 }} diff --git a/templates/docs/meter/sax_0.yaml b/templates/docs/meter/sax_0.yaml new file mode 100644 index 0000000000..7c159ec7fc --- /dev/null +++ b/templates/docs/meter/sax_0.yaml @@ -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 diff --git a/templates/evcc.io/brands.json b/templates/evcc.io/brands.json index a7639f3999..50c95d4aec 100644 --- a/templates/evcc.io/brands.json +++ b/templates/evcc.io/brands.json @@ -79,6 +79,7 @@ "Powerfox", "Qcells", "RCT", + "SAX", "SENEC", "Shelly", "Siemens", @@ -116,6 +117,7 @@ "Powerfox", "Qcells", "RCT", + "SAX", "SENEC", "Senergy", "Shelly",