Skip to content

Commit

Permalink
OpenWB Pro: add rfid support (evcc-io#13011)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Mar 17, 2024
1 parent 6fd387d commit 76b09d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charger/openwb-pro.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 1 addition & 0 deletions charger/openwb/pro/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 76b09d4

Please sign in to comment.