diff --git a/charger/openwb-pro.go b/charger/openwb-pro.go index a8922d72e..872985987 100644 --- a/charger/openwb-pro.go +++ b/charger/openwb-pro.go @@ -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 } diff --git a/charger/openwb/pro/types.go b/charger/openwb/pro/types.go index b251baf9c..2f5d319e8 100644 --- a/charger/openwb/pro/types.go +++ b/charger/openwb/pro/types.go @@ -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"`