Skip to content

fix: read-only EV drivers say why, drop two that read nothing - #241

Merged
frahlg merged 2 commits into
mainfrom
read-only-says-why
Nov 21, 2026
Merged

frahlg merged 2 commits into
mainfrom
read-only-says-why

Conversation

@frahlg

@frahlg frahlg commented Nov 21, 2026

Copy link
Copy Markdown
Member

Why

Fredrik decided on 21 Nov 2026: "a driver that can command its device ships
with control on; one that cannot says so plainly". People read the catalog
and expect a listed device to be controllable. This PR covers the EV-related
drivers that are not ordinary local chargers. Other PRs cover zaptec_cloud,
the other chargers and the policy text.

What

Driver Result Why
easee (local) Removed Easee documents no local Modbus or REST API. The driver read an invented Modbus map and sent 0 W when nothing answered.
zaptec (local) Removed Zaptec documents no local API on Go, Go 2 or Pro. The driver read /api/charger/state, which does not exist.
tesla_wall_connector 0.2.0 Read-only, says why Tesla offers no way for another system to set its current. driver_command now refuses instead of answering true while writing nothing.
teslamate_vehicle 0.2.1 Read-only, says why TeslaMate only logs data; its MQTT has no command topic.
home_assistant_vehicle 0.1.1 Read-only, says why The driver only listens. Control through Home Assistant is possible in principle; the driver comment says what it would take.
tesla_cloud 0.2.1 Read-only, says why Tesla accepts a command only when it is signed with a key paired to the car. A Lua driver cannot sign.
vag_vehicle Not touched #213 is open on this driver and has right of way.

Each read-only driver's description and manifest notes now say why FTW
cannot control the device and where control goes instead: the car
(tesla_vehicle over BLE) or a charger FTW can control.

The removals follow the foxess precedent: a catalog that reports what is
known must not list a map nobody has seen answer. driver-history.json
keeps their record. FTW does not bundle either file. People with an Easee or
Zaptec use easee_cloud, zaptec_cloud, or point the charger's OCPP at
FTW's built-in server (Easee from firmware 344; Zaptec Go, Go 2 and Pro).
If you would rather keep a listing, a read-only stub that reads nothing and
points to the cloud driver is a small change.

Core and vehicle commands

Core already sends a bound vehicle driver charge_start (alias ev_start)
and a telemetry wake_up (alias ev_wake), but never to a read_only
driver. It has no contract to stop a car's charge, set its limit or set its
amps. tesla_cloud cannot use charge_start because Tesla requires signed
commands; vag_vehicle's EU Data Act portal shares data only.

Sources

Tests

  • New drivers/tests/test_ev_read_only_reason.py: each of the four read-only
    drivers declares read_only = true and control: false, and states its
    reason and where control goes.
  • test_tesla_wall_connector.lua: every control action returns false and
    writes nothing; one warning per run. It fails on the old driver.
  • make test-driver ID=<id> for tesla_wall_connector, teslamate_vehicle,
    home_assistant_vehicle, tesla_cloud: 39–41 passed each.
  • make check: 4996 passed, 926 skipped.

Generated files (index.yaml, devices.yaml, support-status.json,
SUPPORT_STATUS.md) will conflict with the parallel PRs. Moving FTW's
bundled-driver pin is a separate step.

🤖 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-21T16:47:58.985324Z bccf647 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 and others added 2 commits November 21, 2026 17:59
Fredrik, 21 Nov 2026: a driver that can command its device ships with
control on; one that cannot says so plainly.

- Remove local easee and zaptec. Easee and Zaptec document no local
  API; the two drivers read an invented Modbus map and a made-up HTTP
  path. Use easee_cloud, zaptec_cloud or the charger's OCPP to FTW.
- tesla_wall_connector 0.2.0: Tesla offers no way for another system to
  set its current. driver_command now refuses instead of answering true
  while writing nothing.
- teslamate_vehicle 0.2.1, home_assistant_vehicle 0.1.1, tesla_cloud
  0.2.1: the description and notes say why FTW cannot control the car
  through them and where control goes instead.

vag_vehicle waits for #213, which has right of way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
Review: 'most business cars' skipping Tesla's signed commands has no
source, and Home Assistant answering 500 on a failed action was not
confirmed. Both were comments only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@frahlg
frahlg force-pushed the read-only-says-why branch from bccf647 to a120212 Compare November 21, 2026 17:01
@frahlg
frahlg merged commit 1d9c489 into main Nov 21, 2026
5 checks passed
@frahlg
frahlg deleted the read-only-says-why branch November 21, 2026 17:03
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 <fredrik@sourceful-labs.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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