Kathrein: add RFID support (#23349)
This commit is contained in:
parent
997f84ac18
commit
dfce0ff264
2 changed files with 20 additions and 3 deletions
|
|
@ -115,6 +115,7 @@ const (
|
|||
kathreinRegGrantedPower = 0x0066 // uint16 Granted charging power [1380 … 22080] @230VAC (W)
|
||||
kathreinRegChargingDuration = 0x0067 // uint32 Duration Charging (s)
|
||||
kathreinRegChargingEnergy = 0x0069 // uint32 Energy Charging Energy (per charging session) (Wh)
|
||||
kathreinRegRfid = 0x0070 // String RFID tag Info
|
||||
|
||||
// EMS-Control - Control register (uint16)
|
||||
// 0x8000 : Enable EMS-Control
|
||||
|
|
@ -398,6 +399,22 @@ func (wb *Kathrein) GetPhases() (int, error) {
|
|||
}
|
||||
}
|
||||
|
||||
var _ api.Identifier = (*Kathrein)(nil)
|
||||
|
||||
// Identify implements the api.Identifier interface
|
||||
func (wb *Kathrein) Identify() (string, error) {
|
||||
b, err := wb.conn.ReadHoldingRegisters(kathreinRegRfid, 16)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
if string(b) == "VOID" {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
return string(b), nil
|
||||
}
|
||||
|
||||
var _ api.Diagnosis = (*Kathrein)(nil)
|
||||
|
||||
// Diagnose implements the api.Diagnosis interface
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ products:
|
|||
- brand: Kathrein
|
||||
description:
|
||||
generic: KWB-AC60 E
|
||||
capabilities: ["1p3p", "mA"]
|
||||
capabilities: ["1p3p", "mA", "rfid"]
|
||||
requirements:
|
||||
description:
|
||||
de: Der Modbus-Server (TCP-Port 502) muss über die Weboberfläche der Wallbox aktiviert werden. Getestet mit Firmware-Version v2.3.2
|
||||
en: The Modbus server (TCP port 502) must be activated on the Wallbox using the Web interface. Tested with Firmware version v2.3.2
|
||||
de: Der Modbus-Server (TCP-Port 502) muss über die Weboberfläche der Wallbox aktiviert werden. Getestet mit Firmware-Version v2.7.0
|
||||
en: The Modbus server (TCP port 502) must be activated on the Wallbox using the Web interface. Tested with Firmware version v2.7.0
|
||||
evcc: ["sponsorship"]
|
||||
params:
|
||||
- name: modbus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue