OpenWB Pro: add rfid support (#13011)

This commit is contained in:
andig 2024-03-17 19:22:15 +01:00 • committed by GitHub
parent 6fd387d4f3
commit 76b09d4a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -215,5 +215,9 @@ func (wb *OpenWBPro) Identify() (string, error) {
return "", err
}
return res.VehicleID, err
if res.VehicleID != "" {
return res.VehicleID, nil
}
return res.RfidTag, nil
}

View file

@ -18,6 +18,7 @@ type Status struct {
PhasesInUse int `json:"phases_in_use"`
OfferedCurrent float64 `json:"offered_current"`
EvseSignaling string `json:"evse_signaling"`
RfidTag string `json:"rfid_tag"`
VehicleID string `json:"vehicle_id"`
Soc int `json:"soc_value"`
SocTimestamp int64 `json:"soc_timestamp"`