From 6deae92f07f7f63b5b4fccb768ba5d6d4bce3377 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 25 Mar 2023 12:24:54 +0100 Subject: [PATCH] Phoenix CHARX: add template --- templates/definition/charger/phoenix-charx.yaml | 14 ++++++++++++++ templates/docs/charger/phoenix-charx_0.yaml | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 templates/definition/charger/phoenix-charx.yaml create mode 100644 templates/docs/charger/phoenix-charx_0.yaml diff --git a/templates/definition/charger/phoenix-charx.yaml b/templates/definition/charger/phoenix-charx.yaml new file mode 100644 index 000000000..d9747e913 --- /dev/null +++ b/templates/definition/charger/phoenix-charx.yaml @@ -0,0 +1,14 @@ +template: phoenix-charx +products: + - brand: Phoenix + description: + generic: CHARX +params: + - name: host + - name: port + default: 502 + - name: connector +render: | + type: phoenix-charx + uri: {{ .host }}:{{ .port }} + connector: {{ .connector }} diff --git a/templates/docs/charger/phoenix-charx_0.yaml b/templates/docs/charger/phoenix-charx_0.yaml new file mode 100644 index 000000000..cee5a8599 --- /dev/null +++ b/templates/docs/charger/phoenix-charx_0.yaml @@ -0,0 +1,15 @@ +product: + brand: Phoenix + description: CHARX +render: + - default: | + type: template + template: phoenix-charx + host: 192.0.2.2 # IP-Adresse oder Hostname + port: 502 # Port # Optional + advanced: | + type: template + template: phoenix-charx + host: 192.0.2.2 # IP-Adresse oder Hostname + port: 502 # Port # Optional + connector: 1 # Optional