Add Amtron templates
This commit is contained in:
parent
1ee5b2b8ec
commit
14bfec15ac
4 changed files with 45 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
16
templates/definition/charger/amtron.yaml
Normal file
16
templates/definition/charger/amtron.yaml
Normal 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" .}}
|
||||
14
templates/docs/charger/amtron_0.yaml
Normal file
14
templates/docs/charger/amtron_0.yaml
Normal 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
|
||||
14
templates/docs/charger/amtron_1.yaml
Normal file
14
templates/docs/charger/amtron_1.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue