Skip to content

fix(zaptec_cloud): stand down only after FTW wrote a current (0.2.1) - #243

Merged
frahlg merged 1 commit into
mainfrom
zaptec-cloud-standdown-only-after-write
Nov 21, 2026
Merged

frahlg merged 1 commit into
mainfrom
zaptec-cloud-standdown-only-after-write

Conversation

@frahlg

@frahlg frahlg commented Nov 21, 2026

Copy link
Copy Markdown
Member

What

The Zaptec Cloud stand-down (driver_default_mode) now acts only after FTW has written a current in this run.

Why

Core runs driver_default_mode at every start, and Zaptec stores maxChargeCurrent on the charger. So 0.2.0 (#240) set 0 A and paused a charger that FTW never steered in that run, for example one added only to watch it. That charger would have stayed at 0 A. Now it keeps the owner's own setting. This is the same rule as heishamon 0.8.1 and the new Modbus charger drivers in #242.

0.2.0 has been in drivers-beta since #240 merged. An owner gets it only by choosing it.

Evidence

  • A new harness case: three stand-downs on a fresh driver write nothing and send no 506. Removing the guard fails it.
  • The refused-stand-down case now places an order first.
  • The FTW gopher-lua runtime probe passes. make check passes (5 092 passed).

Refs #240.

🤖 Generated with Claude Code

@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:04:32.675272Z 295f258 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.

Core runs driver_default_mode at every start. maxChargeCurrent is
stored on the charger, so 0.2.0 set 0 A and paused a charger FTW never
steered in that run, for example one added only to watch it. The
stand-down now acts only after FTW wrote a current, as heishamon 0.8.1
and the new Modbus charger drivers do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>
@frahlg
frahlg force-pushed the zaptec-cloud-standdown-only-after-write branch from 295f258 to 2a188d0 Compare November 21, 2026 17:04
@frahlg
frahlg merged commit c4c39af into main Nov 21, 2026
5 checks passed
@frahlg
frahlg deleted the zaptec-cloud-standdown-only-after-write branch November 21, 2026 17:09
frahlg added a commit that referenced this pull request Nov 21, 2026
Brings in #241 and #243. The invented-number baseline keeps main's list
without etrel, keba, schrack_ev and wallbox; CHANGELOG.md keeps every entry.

Signed-off-by: Fredrik Ahlgren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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