Skip to content

Replace ZWA-2 string-based discovery with VID/PID lookup#21

Merged
bbangert merged 4 commits intomainfrom
copilot/add-discovery-by-vid-pid
Feb 24, 2026
Merged

Replace ZWA-2 string-based discovery with VID/PID lookup#21
bbangert merged 4 commits intomainfrom
copilot/add-discovery-by-vid-pid

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 24, 2026

ZWA-2 auto-detection was matching on manufacturer/description strings ("Nabu Casa" / "ZWA-2"). This switches to VID/PID matching using the ZWA-2's USB identifiers from Home Assistant's zwave_js/manifest.json, which is more reliable.

Changes

  • lib/universal_proxy/uart/server.ex

    • Replaced @zwa2_manufacturer/@zwa2_product string constants with @zwa2_vid (0x303A) / @zwa2_pid (0x4001) integer constants
    • zwa2_device?/1 now matches by VID/PID instead of substring-matching manufacturer/description strings
    • Detection is scoped to ZWA-2 only
  • test/universal_proxy/uart/server_test.exs — new tests for VID/PID matching (positive match, rejection of unknown/missing VID/PID)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits February 24, 2026 05:11
…js manifest

Co-authored-by: bbangert <100193+bbangert@users.noreply.github.com>
…icate lookup

Co-authored-by: bbangert <100193+bbangert@users.noreply.github.com>
Copilot AI changed the title [WIP] Add discovery by VID/PID for ESPHome Replace ZWA string-based discovery with VID/PID lookup Feb 24, 2026
Comment thread lib/universal_proxy/uart/server.ex Outdated
Co-authored-by: bbangert <100193+bbangert@users.noreply.github.com>
Comment thread lib/universal_proxy/uart/server.ex Outdated
Copilot AI changed the title Replace ZWA string-based discovery with VID/PID lookup Replace ZWA-2 string-based discovery with VID/PID lookup Feb 24, 2026
@bbangert bbangert marked this pull request as ready for review February 24, 2026 05:20
@bbangert bbangert merged commit 516dcc0 into main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants