Skip to content

fix(drivers): bundle tesla_wall_connector 0.1.2, no power through an open contactor - #1952

Merged
frahlg merged 1 commit into
masterfrom
fix/bundle-tesla-wall-connector-0.1.2
Nov 2, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/bundle-tesla-wall-connector-0.1.2

Conversation

@frahlg

@frahlg frahlg commented Nov 2, 2026

Copy link
Copy Markdown
Member

Why

A user on v0.157.3-beta.1 (Home Assistant app) reported an idle Tesla Wall Connector Gen 3 showing 184–284 W of charging power with no car connected. With the contactor open, the unit reads 0.5–1 A of sensor offset on its legs while the leg voltages read 0 V (they are measured on the car side of the contactor). The driver multiplied that current by the grid voltage. Fixed in srcfl/device-drivers#204 (tesla_wall_connector 0.1.2, merged as 107eb609).

What

  • drivers/BUNDLED_SOURCE.json: 46b28a1 → 107eb609. Only tesla_wall_connector.lua differs between the two commits.
  • go/internal/drivers/testdata/tesla_wall_connector.lua was still the copy from feat(ev): add Tesla Wall Connector Gen 3 local HTTP #978, behind the bundled driver. It is now byte-identical to 0.1.2, and the Go tests follow the driver's contract:
    • control commands get Core's read_only refusal (the driver's catalog marks it read-only; with the shipped driver this test already failed against the real file);
    • legs at 0–2 V carry no power even with the contactor closed (TestTeslaWallConnectorLegsAtZeroCarryNoPower, the old fallback case);
    • no leg voltages at all still fall back to grid_v × vehicle_current_a;
    • an open contactor with leg offset current reads 0 W (TestTeslaWallConnectorOpenContactorIsIdle, the reported case).

Evidence

  • scripts/sync-bundled-drivers.sh fetched the 44 drivers at the new pin; --check passes.
  • go test ./internal/drivers/... ./internal/fleetping/... ./internal/evcloud/... pass locally.
  • device-drivers#204 carried 14 driver test cases and passed its drivers, dco, public-boundary, secret scan and signed-channel checks; main had not moved since those ran.

🤖 Generated with Claude Code

…open contactor

Moves the pin to srcfl/device-drivers@107eb609 (#204). Only the Tesla Wall
Connector driver changes. The test copy in go/internal/drivers/testdata was
still the version from #978; it now matches the bundled driver, and the
tests follow its contract: Core refuses control of the read-only driver,
legs at 0 V carry no power, and an open contactor is idle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T10:12:27.294227Z eafbe19 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit fdc2741 into master Nov 2, 2026
23 checks 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.

1 participant