Skip to content

Handle broken RFID in Openwb SW2.0#29352

Open
kaindl wants to merge 4 commits intoevcc-io:masterfrom
kaindl:openwb-2.0-broken-rfid
Open

Handle broken RFID in Openwb SW2.0#29352
kaindl wants to merge 4 commits intoevcc-io:masterfrom
kaindl:openwb-2.0-broken-rfid

Conversation

@kaindl
Copy link
Copy Markdown
Contributor

@kaindl kaindl commented Apr 22, 2026

As already described in #27679 RFID-Handling in openWB is currently broken can mislead users!

It can lead to

  1. users thinking, their wallbox is only accessible with authorization, but everyone can use it
  2. broken automatic detection of cars with no obvious reason

Because these problems can lead to a very bad user experience for evcc-Users, this PR disables RFID-Authentication for openWB SW2.0 by default and adds Warnings about this behavior. RFID-Authentication can still be activated in Advanced settings.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • When identify is enabled but wb.identify() fails, the error is silently ignored and RFID is effectively disabled; consider logging a warning in this case so users understand why RFID is not working despite having enabled it.
  • You removed the "rfid" capability from the template even though RFID can still be explicitly enabled via the new identify flag; consider keeping the capability and gating behavior at runtime so that tooling or UI depending on capabilities can still detect optional RFID support.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- When `identify` is enabled but `wb.identify()` fails, the error is silently ignored and RFID is effectively disabled; consider logging a warning in this case so users understand why RFID is not working despite having enabled it.
- You removed the `"rfid"` capability from the template even though RFID can still be explicitly enabled via the new `identify` flag; consider keeping the capability and gating behavior at runtime so that tooling or UI depending on capabilities can still detect optional RFID support.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig assigned premultiply and unassigned premultiply Apr 23, 2026
@andig andig added devices Specific device support labels Apr 23, 2026
Comment thread charger/openwb-2.0.go Outdated
Comment thread charger/openwb-2.0.go
if _, err := wb.identify(); err == nil {
identify = wb.identify
if cc.Identify {
if _, err := wb.identify(); err == nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing error check

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which error check are you expecting here?

Copy link
Copy Markdown
Member

@andig andig Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error needs be returned if != nil

Comment thread templates/definition/charger/openwb-2.0.yaml Outdated
@andig
Copy link
Copy Markdown
Member

andig commented Apr 26, 2026

/cc @snaptec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devices Specific device support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants