Skip to content

chore(drivers): bundle device-drivers 504b0dd, Zaptec Cloud control - #2060

Merged
frahlg merged 3 commits into
masterfrom
bundle-zaptec-control
Nov 21, 2026
Merged

frahlg merged 3 commits into
masterfrom
bundle-zaptec-control

Conversation

@frahlg

@frahlg frahlg commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What

This moves the bundled driver pin to srcfl/device-drivers 504b0dd:

It also adds TestZaptecCloudControlsThroughFTWHost. The test runs the bundled driver in Core's Lua host against a fake Zaptec API and pins every write:

  • the current goes to maxChargeCurrent
  • pause is 0 A plus 506
  • resume offers 6 A plus 507
  • the stand-down is 0 A plus 506, once
  • every request carries an FTW User-Agent

The older test against the testdata/ copy stays as it is.

docs/ocpp.md no longer points to an Easee Modbus driver. That driver never read a real charger and has been removed from device-drivers.

Why

A new owner with a Zaptec Go on a 20 A main fuse could not control charging from FTW. L1 overloaded whenever the car charged next to the battery. Fredrik decided on 21 November 2026 that a driver that can command its device ships with control on (srcfl/device-drivers#239).

Evidence

  • make verify passed locally.
  • On the device-drivers side, zaptec_cloud was reviewed independently in three rounds. Its harness test and mutation checks cover the fuse budget, the phase rule, pause and resume, Zaptec's 520/528 codes, stand-alone mode and the stand-down.

The control path is not yet confirmed on a real charger. It stays experimental.

Changeset: minor

Control of a Zaptec charger is a visible new capability, so the changeset is minor. Fredrik asked for this control in chat on 21 November 2026, and his words were "gå hela vägen … pushar ut".

What an existing Zaptec owner sees after the update:

  • FTW starts steering a charger that is bound to a loadpoint.
  • At start FTW does nothing until it has written a current itself.
  • After that, a stand-down sets 0 A and pauses the charger until the next order. A stand-down happens on a restart or a stale meter.

Review

An independent review recommended merge. Its follow-ups are in the last commit:

  • the old Zaptec tests now load the bundled driver, and the stale testdata/ copy is gone;
  • the power check can now fail;
  • the changeset is minor and says what happens on a stand-down;
  • docs/ocpp.md says the control is experimental.

🤖 Generated with Claude Code

Moves the bundled driver pin to srcfl/device-drivers c4c39af:
- zaptec_cloud 0.2.1 sets the charging current, pauses and resumes
  (device-drivers #240, #243). It used to declare read_only.
- tesla_wall_connector, teslamate_vehicle, home_assistant_vehicle and
  tesla_cloud now say why they only read (#241).

Adds TestZaptecCloudControlsThroughFTWHost, which runs the bundled driver
in Core's Lua host against a fake Zaptec API and pins every write.
docs/ocpp.md no longer mentions an Easee Modbus driver, which never read
a real charger and is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T17:14:25.230558Z 9bead65 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.

…geset

Review of #2060:
- The old Zaptec tests loaded a stale read-only copy in testdata/. They
  now load the bundled drivers/zaptec_cloud.lua, and the copy is gone.
- The power check in the new test can now fail.
- The changeset is minor: control of a Zaptec charger is a visible new
  capability. It now says that a stand-down leaves the charger at 0 A,
  stored on the charger.
- docs/ocpp.md says the Zaptec control is experimental and drops an
  unsourced claim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
…0.2.2)

zaptec_cloud 0.2.2 (device-drivers #247) returns false when a stand-down
is refused, so Core keeps control blocked and retries instead of
believing the charger stopped. No other bundled driver changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@frahlg frahlg changed the title chore(drivers): bundle device-drivers c4c39af, Zaptec Cloud control chore(drivers): bundle device-drivers 504b0dd, Zaptec Cloud control Nov 21, 2026
@frahlg
frahlg merged commit eeae7c7 into master Nov 21, 2026
21 checks passed
@frahlg
frahlg deleted the bundle-zaptec-control branch November 21, 2026 18:07
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