diff --git a/charger/openwb-2.0.go b/charger/openwb-2.0.go index 7a372cc9bdd..5c488e9f23d 100644 --- a/charger/openwb-2.0.go +++ b/charger/openwb-2.0.go @@ -48,6 +48,7 @@ func NewOpenWB20FromConfig(ctx context.Context, other map[string]any) (api.Charg cc := struct { Connector uint16 Phases1p3p bool + Identify bool modbus.TcpSettings `mapstructure:",squash"` }{ Connector: 1, @@ -71,8 +72,13 @@ func NewOpenWB20FromConfig(ctx context.Context, other map[string]any) (api.Charg } var identify func() (string, error) - if _, err := wb.identify(); err == nil { - identify = wb.identify + if cc.Identify { + _, err := wb.identify() + if err == nil { + identify = wb.identify + } else { + return nil, err + } } return decorateOpenWB20(wb, phases1p3p, identify), nil diff --git a/templates/definition/charger/openwb-2.0.yaml b/templates/definition/charger/openwb-2.0.yaml index 779872554d9..49903133676 100644 --- a/templates/definition/charger/openwb-2.0.yaml +++ b/templates/definition/charger/openwb-2.0.yaml @@ -3,7 +3,7 @@ products: - brand: openWB description: generic: Software 2.x -capabilities: ["1p3p", "mA", "rfid"] +capabilities: ["1p3p", "mA"] requirements: description: de: | @@ -12,12 +12,18 @@ requirements: * Steuerungsmodus: `secondary` * Steuerung über Modbus als secondary: `An` + + RFID-Autorisierung ist mit openWB Software 2.x leider aktuell nicht sinnvoll nutzbar, siehe + [`Issue 2832`](https://github.com/openWB/core/issues/2832) en: | Requires [`Software 2.x`](https://github.com/openWB/core). The following changes are necessary under the 'Einstellungen' tab: * Steuerungsmodus: `secondary` * Steuerung über Modbus als secondary: `An` + + RFID-Authorisation currently is not usable with openWB Software 2.x, check + [`openWB Issue 2832`](https://github.com/openWB/core/issues/2832) params: - name: modbus choice: ["tcpip"] @@ -32,8 +38,18 @@ params: de: Phasenumschaltung vorhanden advanced: true default: true + - name: identify + type: bool + description: + en: Use RFID-Reader + de: RFID-Reader verwenden + help: + en: Be sure to check openWB Issue 2832 before enabling this, should not be used for access protection! + de: Unbedingt openWB Issue 2832 beachten, sollte nicht für Zugangsschutz verwendet werden! + advanced: true render: | type: openwb-2.0 {{- include "modbus" . }} connector: {{ .connector }} phases1p3p: {{ .phases1p3p }} + identify: {{ .identify }}