Add Amtron templates

This commit is contained in:
Andreas Linde 2022-01-29 16:44:48 +01:00
parent 1ee5b2b8ec
commit 14bfec15ac
No known key found for this signature in database
GPG key ID: 96178502495847D9
4 changed files with 45 additions and 1 deletions

View file

@ -50,7 +50,7 @@ func TestChargerTemplates(t *testing.T) {
} else {
values[templates.ModbusKeyRS485TCPIP] = true
}
values = tmpl.ModbusValues(templates.TemplateRenderModeUnitTest, true, values)
values = tmpl.ModbusValues(templates.TemplateRenderModeInstance, true, values)
}
t.Run(tmpl.Template, func(t *testing.T) {

View file

@ -0,0 +1,16 @@
template: amtron
products:
- brand: Mennekes
description:
generic: AMTRON XTRA
- brand: Mennekes
description:
generic: AMTRON PREMIUM
requirements:
evcc: ["sponsorship"]
params:
- name: modbus
choice: ["tcpip"]
render: |
type: amtron
{{include "modbus" .}}

View file

@ -0,0 +1,14 @@
product:
brand: Mennekes
description: AMTRON XTRA
requirements: ["sponsorship"]
render:
- default: |
type: template
template: amtron
# Modbus Start
id: 1
# TCPIP
uri: 192.0.2.2:502 # IP-Adresse oder Hostname: Port
# Modbus End

View file

@ -0,0 +1,14 @@
product:
brand: Mennekes
description: AMTRON PREMIUM
requirements: ["sponsorship"]
render:
- default: |
type: template
template: amtron
# Modbus Start
id: 1
# TCPIP
uri: 192.0.2.2:502 # IP-Adresse oder Hostname: Port
# Modbus End