diff --git a/charger/schneider.go b/charger/schneider-v3.go similarity index 95% rename from charger/schneider.go rename to charger/schneider-v3.go index 375d32d7b2..f743b064d4 100644 --- a/charger/schneider.go +++ b/charger/schneider-v3.go @@ -55,13 +55,13 @@ const ( ) func init() { - registry.Add("schneider", NewSchneiderFromConfig) + registry.Add("schneider-v3", NewSchneiderV3FromConfig) } // https://download.schneider-electric.com/files?p_enDocType=Other+technical+guide&p_File_Name=GEX1969300-04.pdf&p_Doc_Ref=GEX1969300 -// NewSchneiderFromConfig creates a Schneider charger from generic config -func NewSchneiderFromConfig(other map[string]interface{}) (api.Charger, error) { +// NewSchneiderV3FromConfig creates a Schneider charger from generic config +func NewSchneiderV3FromConfig(other map[string]interface{}) (api.Charger, error) { cc := modbus.TcpSettings{ ID: 255, } @@ -70,11 +70,11 @@ func NewSchneiderFromConfig(other map[string]interface{}) (api.Charger, error) { return nil, err } - return NewSchneider(cc.URI, cc.ID) + return NewSchneiderV3(cc.URI, cc.ID) } -// NewSchneider creates Schneider charger -func NewSchneider(uri string, id uint8) (api.Charger, error) { +// NewSchneiderV3 creates Schneider charger +func NewSchneiderV3(uri string, id uint8) (api.Charger, error) { conn, err := modbus.NewConnection(uri, "", "", 0, modbus.Tcp, id) if err != nil { return nil, err diff --git a/templates/definition/charger/scheider-evlink.yaml b/templates/definition/charger/scheider-evlink-v3.yaml similarity index 63% rename from templates/definition/charger/scheider-evlink.yaml rename to templates/definition/charger/scheider-evlink-v3.yaml index c7bda2d1e9..c2eccd073d 100644 --- a/templates/definition/charger/scheider-evlink.yaml +++ b/templates/definition/charger/scheider-evlink-v3.yaml @@ -1,8 +1,9 @@ -template: schneider-evlink +template: schneider-evlink-v3 +covers: ["schneider-evlink"] products: - brand: Schneider description: - generic: EVlink Wallbox, EVlink Parkplatz + generic: EVlink Pro requirements: evcc: ["sponsorship"] params: @@ -10,5 +11,5 @@ params: choice: ["tcpip"] id: 255 render: | - type: schneider + type: schneider-v3 {{- include "modbus" . }}