Skip to content

Commit

Permalink
Schneider: update covered devices (#11830)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 25, 2024
1 parent 8ad563e commit 50e2b5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions charger/schneider.go → charger/schneider-v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
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:
- name: modbus
choice: ["tcpip"]
id: 255
render: |
type: schneider
type: schneider-v3
{{- include "modbus" . }}

0 comments on commit 50e2b5b

Please sign in to comment.