Merge pull request #4758 from DerAndereAndi/feature/meter-template-updates
Template updates
This commit is contained in:
commit
e738e1ca92
8 changed files with 184 additions and 20 deletions
|
|
@ -11,10 +11,14 @@ requirements:
|
|||
de: |
|
||||
Dem Gerät muss eine feste IP Adresse zugewiesen sein (Manuell oder per DHCP).
|
||||
|
||||
Eine Identifikation des Fahrzeugs über die RFID Karte ist nicht möglich.
|
||||
|
||||
Die Unterstützung ist im Beta Stadium und es kann noch zu Problemen kommen!
|
||||
en: |
|
||||
The device has to have a fix IP address (manuall or via DHCP).
|
||||
|
||||
The identification of a vehicle using the RFID card is not possible.
|
||||
|
||||
The support is in beta state and problems can occur!
|
||||
params:
|
||||
- preset: eebusnometer
|
||||
|
|
|
|||
|
|
@ -11,10 +11,14 @@ requirements:
|
|||
de: |
|
||||
Dem Gerät muss eine feste IP Adresse zugewiesen sein (Manuell oder per DHCP).
|
||||
|
||||
Eine Identifikation des Fahrzeugs über die RFID Karte ist nicht möglich.
|
||||
|
||||
Die Unterstützung ist im Beta Stadium und es kann noch zu Problemen kommen!
|
||||
en: |
|
||||
The device has to have a fix IP address (manuall or via DHCP).
|
||||
|
||||
The identification of a vehicle using the RFID card is not possible.
|
||||
|
||||
The support is in beta state and problems can occur!
|
||||
params:
|
||||
- preset: eebusmeter
|
||||
|
|
|
|||
|
|
@ -10,6 +10,12 @@
|
|||
"template": {
|
||||
"$": "#/definitions/Template"
|
||||
},
|
||||
"covers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"products": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
|
@ -19,8 +25,11 @@
|
|||
"group": {
|
||||
"$ref": "#/definitions/Groups"
|
||||
},
|
||||
"guidedsetup": {
|
||||
"$ref": "#/definitions/GuidedSetup"
|
||||
"linked": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Linked"
|
||||
}
|
||||
},
|
||||
"capabilities": {
|
||||
"type": "array",
|
||||
|
|
@ -58,7 +67,7 @@
|
|||
},
|
||||
"required": ["name"],
|
||||
"title": "Template"
|
||||
},
|
||||
},
|
||||
"Product": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
|
@ -80,22 +89,6 @@
|
|||
"type": "string",
|
||||
"enum": ["generic", "switchsockets", "scooter", "sockets"]
|
||||
},
|
||||
"GuidedSetup": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"linked": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Linked"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["enable"]
|
||||
},
|
||||
"Linked": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ render: |
|
|||
source: http
|
||||
uri: http://{{ .host }}/status
|
||||
jq: .emeters | map(.power) | add
|
||||
{{if eq .usage "grid" -}}
|
||||
{{- if or (eq .usage "charge") (eq .usage "grid") }}
|
||||
energy:
|
||||
source: http
|
||||
uri: http://{{ .host }}/status
|
||||
|
|
|
|||
59
templates/definition/meter/siemens-7kt1665.yaml
Normal file
59
templates/definition/meter/siemens-7kt1665.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
template: siemens
|
||||
products:
|
||||
- brand: Siemens
|
||||
description:
|
||||
generic: 7KT1665
|
||||
params:
|
||||
- name: usage
|
||||
choice: ["grid", "pv", "battery", "charge"]
|
||||
- name: modbus
|
||||
choice: ["rs485", "tcpip"]
|
||||
render: |
|
||||
type: custom
|
||||
power:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 57
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.01
|
||||
timeout: 5s
|
||||
{{- if or (eq .usage "charge") (eq .usage "grid") }}
|
||||
energy:
|
||||
source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 6687
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.001
|
||||
timeout: 5s
|
||||
{{ end -}}
|
||||
{{- if or (eq .usage "charge") (eq .usage "grid") }}
|
||||
currents:
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 7
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.0001
|
||||
timeout: 5s
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 9
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.0001
|
||||
timeout: 5s
|
||||
- source: modbus
|
||||
{{- include "modbus" . | indent 2 }}
|
||||
register:
|
||||
address: 11
|
||||
type: input
|
||||
decode: uint32
|
||||
scale: 0.0001
|
||||
timeout: 5s
|
||||
{{ end -}}
|
||||
|
|
@ -6,6 +6,8 @@ requirements: ["eebus"]
|
|||
description: |
|
||||
Dem Gerät muss eine feste IP Adresse zugewiesen sein (Manuell oder per DHCP).
|
||||
|
||||
Eine Identifikation des Fahrzeugs über die RFID Karte ist nicht möglich.
|
||||
|
||||
Die Unterstützung ist im Beta Stadium und es kann noch zu Problemen kommen!
|
||||
|
||||
render:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ requirements: ["eebus"]
|
|||
description: |
|
||||
Dem Gerät muss eine feste IP Adresse zugewiesen sein (Manuell oder per DHCP).
|
||||
|
||||
Eine Identifikation des Fahrzeugs über die RFID Karte ist nicht möglich.
|
||||
|
||||
Die Unterstützung ist im Beta Stadium und es kann noch zu Problemen kommen!
|
||||
|
||||
render:
|
||||
|
|
|
|||
100
templates/docs/meter/siemens_0.yaml
Normal file
100
templates/docs/meter/siemens_0.yaml
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
product:
|
||||
brand: Siemens
|
||||
description: 7KT1665
|
||||
render:
|
||||
- usage: grid
|
||||
default: |
|
||||
type: template
|
||||
template: siemens
|
||||
usage: grid
|
||||
|
||||
# RS485 via adapter (Modbus RTU)
|
||||
modbus: rs485serial
|
||||
id: 1
|
||||
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
|
||||
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
|
||||
comset: "8N1" # Kommunikationsparameter für den Adapter
|
||||
|
||||
# RS485 via TCP/IP (Modbus RTU)
|
||||
modbus: rs485tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
|
||||
# Modbus TCP
|
||||
modbus: tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
- usage: pv
|
||||
default: |
|
||||
type: template
|
||||
template: siemens
|
||||
usage: pv
|
||||
|
||||
# RS485 via adapter (Modbus RTU)
|
||||
modbus: rs485serial
|
||||
id: 1
|
||||
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
|
||||
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
|
||||
comset: "8N1" # Kommunikationsparameter für den Adapter
|
||||
|
||||
# RS485 via TCP/IP (Modbus RTU)
|
||||
modbus: rs485tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
|
||||
# Modbus TCP
|
||||
modbus: tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
- usage: battery
|
||||
default: |
|
||||
type: template
|
||||
template: siemens
|
||||
usage: battery
|
||||
|
||||
# RS485 via adapter (Modbus RTU)
|
||||
modbus: rs485serial
|
||||
id: 1
|
||||
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
|
||||
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
|
||||
comset: "8N1" # Kommunikationsparameter für den Adapter
|
||||
|
||||
# RS485 via TCP/IP (Modbus RTU)
|
||||
modbus: rs485tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
|
||||
# Modbus TCP
|
||||
modbus: tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
- usage: charge
|
||||
default: |
|
||||
type: template
|
||||
template: siemens
|
||||
usage: charge
|
||||
|
||||
# RS485 via adapter (Modbus RTU)
|
||||
modbus: rs485serial
|
||||
id: 1
|
||||
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
|
||||
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
|
||||
comset: "8N1" # Kommunikationsparameter für den Adapter
|
||||
|
||||
# RS485 via TCP/IP (Modbus RTU)
|
||||
modbus: rs485tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
|
||||
# Modbus TCP
|
||||
modbus: tcpip
|
||||
id: 1
|
||||
host: 192.0.2.2 # Hostname
|
||||
port: 502 # Port
|
||||
Loading…
Add table
Add a link
Reference in a new issue