Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,43 @@ steered it, and an owner whose fuse was overloaded had no way to see why.
reported, and every request carries an FTW User-Agent.

Written from Zaptec's API documentation. Not yet confirmed on hardware.
### Removed: local `easee` and local `zaptec`

Both read a device API that does not exist, so the catalog stops listing
them. `easee` read an invented Modbus map: Easee documents no local Modbus or
REST API. `zaptec` read `/api/charger/state` over HTTP: Zaptec documents no
local API on Go, Go 2 or Pro. On a real charger they read nothing, and
`easee` then sent 0 W as if the charger had said so. Neither was ever run on
hardware.

Use `easee_cloud` or `zaptec_cloud` instead. For local control, point the
charger's OCPP at FTW: Easee from firmware 344 and Zaptec Go, Go 2 and Pro
can connect to an OCPP 1.6J server of the owner's choice, and FTW has one
built in (FTW `docs/ocpp.md`). `driver-history.json` keeps their record,
as it did for `foxess`.

### tesla_wall_connector 0.2.0

The driver says plainly that FTW can read the charger but not control it:
Tesla offers no way for another system to set its current or start and stop
it. Tesla's own current control is Dynamic Power Management, an installer
setting fed by a Tesla energy meter; its application note is now in
`upstream_docs`. Control goes through the car (`tesla_vehicle`) or a charger
FTW can control, such as one on OCPP.

`driver_command` now refuses every control action with `false`. It used to
answer `true` to `ev_set_current`, `ev_pause`, `ev_resume` and `ev_start`
while writing nothing. FTW Core never sent those to this read-only driver,
so nothing changes there, but no host may now read a refusal as success.

### teslamate_vehicle 0.2.1, home_assistant_vehicle 0.1.1, tesla_cloud 0.2.1

Each description and manifest note now says why FTW cannot control the car
through it, and where control goes instead. TeslaMate only logs data and
takes no commands. The Home Assistant driver only listens and sends nothing
back. Tesla's Fleet API accepts a command only when it is signed with a key
paired to the car, and a Lua driver cannot sign. To start a Tesla's charge,
add `tesla_vehicle` (BLE proxy). No behaviour changes.

### heishamon 0.8.1

Expand Down
20 changes: 8 additions & 12 deletions SUPPORT_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ Catalog source is not proof that a target can install or run a driver.
| deye-svk | 0.2.2 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| deye | 2.1.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| deye | 2.1.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| easee | 1.0.4 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| easee | 1.0.4 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| easee_cloud | 1.4.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| easee_cloud | 1.4.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| esphome_dsmr | 1.0.7 | ftw-core | not_assessed | — | not_recorded | not_assessed |
Expand Down Expand Up @@ -80,8 +78,8 @@ Catalog source is not proof that a target can install or run a driver.
| heishamon | 0.8.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| hello | 1.1.2 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| hello | 1.1.2 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| home_assistant_vehicle | 0.1.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| home_assistant_vehicle | 0.1.0 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| home_assistant_vehicle | 0.1.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| home_assistant_vehicle | 0.1.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| huawei | 2.1.3 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| huawei | 2.1.3 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| janitza | 1.0.5 | ftw-core | not_assessed | — | not_recorded | not_assessed |
Expand Down Expand Up @@ -162,14 +160,14 @@ Catalog source is not proof that a target can install or run a driver.
| sonnen | 2.0.3 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| sungrow | 1.6.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| sungrow | 1.6.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tesla_cloud | 0.2.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tesla_cloud | 0.2.0 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tesla_cloud | 0.2.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tesla_cloud | 0.2.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tesla_vehicle | 0.2.6 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tesla_vehicle | 0.2.6 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tesla_wall_connector | 0.1.2 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tesla_wall_connector | 0.1.2 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| teslamate_vehicle | 0.2.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| teslamate_vehicle | 0.2.0 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tesla_wall_connector | 0.2.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tesla_wall_connector | 0.2.0 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| teslamate_vehicle | 0.2.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| teslamate_vehicle | 0.2.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| tibber | 1.1.2 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| tibber | 1.1.2 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| vag_vehicle | 0.3.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
Expand All @@ -184,8 +182,6 @@ Catalog source is not proof that a target can install or run a driver.
| wallbox | 1.0.3 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| zap | 3.1.3 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| zap | 3.1.3 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| zaptec | 1.0.1 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| zaptec | 1.0.1 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| zaptec_cloud | 0.2.0 | ftw-core | not_assessed | — | not_recorded | not_assessed |
| zaptec_cloud | 0.2.0 | blixt-l1 | not_assessed | — | not_recorded | not_assessed |
| zuidwijk_p1 | 1.1.2 | ftw-core | not_assessed | — | not_recorded | not_assessed |
Expand Down
38 changes: 8 additions & 30 deletions devices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,6 @@ manufacturers:
notes: "Name-derived phase object_ids live-validated on SlimmeLezer+; explicit Sourceful aliases retained."
- name: "Easee"
model_families:
- name: "Easee"
variants: [Easee Charge, Easee Home]
regions: []
protocols:
- protocol: modbus
driver: "easee"
version: "1.0.4"
ders: [v2x_charger]
control: false
firmware_versions: ""
notes: "Community driver, may require specific firmware for Modbus TCP"
- name: "Easee Cloud"
variants: [Charge, Home]
regions: []
Expand Down Expand Up @@ -614,11 +603,11 @@ manufacturers:
protocols:
- protocol: mqtt
driver: "home_assistant_vehicle"
version: "0.1.0"
version: "0.1.1"
ders: [vehicle]
control: false
firmware_versions: ""
notes: "Read-only vehicle level, charge limit, charging state, charge cable and place from a JSON message a Home Assistant automation publishes. Tested with recorded messages from a Model Y on the Tesla Custom Integration; the cable and place fields have not run on a car. Does not wake or command the car."
notes: "Read-only. FTW reads the car's charge level, charge limit, charging state, charge cable and place from a message a Home Assistant automation publishes over MQTT. FTW cannot control the car through it: the driver only listens and sends nothing back to Home Assistant. Control the charge with a charger FTW can control. Tested with recorded messages from a Model Y on the Tesla Custom Integration; the cable and place fields have not run on a car. Does not wake the car."
- name: "Hoymiles"
model_families:
- name: "HM Series"
Expand Down Expand Up @@ -1841,33 +1830,33 @@ manufacturers:
protocols:
- protocol: http
driver: "tesla_cloud"
version: "0.2.0"
version: "0.2.1"
ders: [vehicle]
control: false
firmware_versions: ""
notes: "Read-only vehicle SoC, charge limit, charging state and charge cable via the official Tesla Fleet API. Grant the optional vehicle_location scope to report the car's distance from the site; the coordinates stay in the driver. Optional next to tesla_vehicle (BLE proxy). Does not wake or command the car. Not yet run against a car."
notes: "Read-only. FTW reads the car's charge level, charge limit, charging state and charge cable from the official Tesla Fleet API. FTW cannot control the car through it: Tesla accepts a command only when it is signed with a key paired to the car, and this driver cannot sign. Use tesla_vehicle (BLE proxy) to start the car's charge, or a charger FTW can control. Grant the optional vehicle_location scope to report the car's distance from the site; the coordinates stay in the driver. Does not wake the car. Not yet run against a car."
- name: "Tesla Vehicle (TeslaMate)"
variants: [Model 3, Model Y]
regions: []
protocols:
- protocol: mqtt
driver: "teslamate_vehicle"
version: "0.2.0"
version: "0.2.1"
ders: [vehicle]
control: false
firmware_versions: ""
notes: "Read-only vehicle SoC, charge limit, charging state, charge cable and place via TeslaMate MQTT. Set geofence to this site's TeslaMate geofence for the place. Optional next to tesla_vehicle (BLE proxy). Does not wake or command the car. Not yet run against a car."
notes: "Read-only. FTW reads the car's charge level, charge limit, charging state, charge cable and place from TeslaMate over MQTT. FTW cannot control the car through it: TeslaMate only logs data and takes no commands. Use tesla_vehicle (BLE proxy) to start the car's charge, or a charger FTW can control. Set geofence to this site's TeslaMate geofence for the place. Does not wake the car. Not yet run against a car."
- name: "Tesla Wall Connector"
variants: [Wall Connector Gen 3]
regions: []
protocols:
- protocol: http
driver: "tesla_wall_connector"
version: "0.1.2"
version: "0.2.0"
ders: [ev]
control: false
firmware_versions: ""
notes: "Tesla Wall Connector Gen 3 on the LAN. Observation only; no local current setpoint."
notes: "Read-only. FTW reads power, current and session energy from the charger on your network, with no cloud account. FTW cannot control it: Tesla offers no way for another system to set its current or start and stop it. Its own current control is an installer setting fed by a Tesla energy meter. Control goes through the car (tesla_vehicle) or a charger FTW can control, such as one on OCPP."
- name: "Tibber"
model_families:
- name: "Tibber Pulse"
Expand Down Expand Up @@ -2108,17 +2097,6 @@ manufacturers:
notes: "Community driver, untested"
- name: "Zaptec"
model_families:
- name: "Zaptec"
variants: [Zaptec GO, Zaptec PRO]
regions: []
protocols:
- protocol: http
driver: "zaptec"
version: "1.0.1"
ders: [v2x_charger]
control: false
firmware_versions: ""
notes: "Community driver, untested"
- name: "Zaptec Cloud"
variants: [Go, Go 2, Pro]
regions: []
Expand Down
116 changes: 0 additions & 116 deletions drivers/lua/easee.lua

This file was deleted.

16 changes: 14 additions & 2 deletions drivers/lua/home_assistant_vehicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,30 @@
--
-- Publish non-retained: a retained message would replay an old reading at
-- every reconnect.
--
-- Why there is no control. Home Assistant can start and stop a car's charge
-- through the car integration's own entities (Tesla Fleet has a Charge
-- switch and Charge current and Charge limit numbers), and the FTW host
-- could reach them: host.http_post to Home Assistant's REST API
-- (POST /api/services/<domain>/<service>) or host.mqtt_publish to a topic
-- an automation acts on. This driver
-- does neither. Each needs a Home Assistant token or a second automation the
-- owner writes, entity names differ by integration, and over MQTT the driver
-- would never learn whether the car took the command. FTW Core sends a car
-- only charge_start and a telemetry wake_up today. Until that work is done,
-- it listens and nothing more.

DRIVER = {
host_api_min = 1,
host_api_max = 1,
id = "home_assistant_vehicle",
name = "Vehicle (Home Assistant MQTT)",
manufacturer = "Home Assistant",
version = "0.1.0",
version = "0.1.1",
protocols = { "mqtt" },
capabilities = { "vehicle" },
read_only = true,
description = "Read-only vehicle level, charge limit, charging state, charge cable and place from a JSON message a Home Assistant automation publishes over MQTT. Does not wake or command the car.",
description = "Reads a car's charge level, limit, charging state, cable and place from a message a Home Assistant automation publishes over MQTT. Read-only: the driver only listens and sends nothing back, so FTW cannot start or stop charging through it. Control the charge with a charger FTW can control.",
homepage = "https://www.home-assistant.io/integrations/mqtt/",
authors = { "FTW contributors" },
tested_models = { "Model Y" },
Expand Down
14 changes: 12 additions & 2 deletions drivers/lua/tesla_cloud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
-- vehicle_device_data. Do not grant vehicle_cmds / vehicle_charging_cmds for
-- this driver; it never posts a command.
--
-- Why there is no control. Fleet API has charge_start, charge_stop,
-- set_charging_amps and set_charge_limit, but a current car rejects any
-- command not signed with a virtual key paired to that car, and does
-- nothing. Tesla's Vehicle Command Proxy or SDK does the signing; only
-- pre-2021 Model S and X still take unsigned commands. Signing needs a key
-- exchange and authenticated encryption that a sandboxed Lua driver cannot
-- do. Commands are also billed. tesla_vehicle already sends charge_start,
-- signed, through a local BLE proxy.
-- https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-commands
--
-- Which car is plugged in (FTW docs/cars.md, rule 2). The same charge_state
-- read says whether a cable is in (conn_charge_cable, else charging_state).
-- The driver sends no plugged_since_ms: it reads the car minutes apart, so
Expand Down Expand Up @@ -70,12 +80,12 @@ DRIVER = {
id = "tesla_cloud",
name = "Tesla Vehicle (Fleet API)",
manufacturer = "Tesla",
version = "0.2.0",
version = "0.2.1",
protocols = { "http" },
capabilities = { "vehicle" },
read_only = true,
auth_post_path = "/oauth2/v3/token",
description = "Read-only Tesla vehicle SoC, charge limit and charging state via the official Fleet API. Optional next to the local BLE-proxy driver. Does not wake or command the car.",
description = "Reads a Tesla's charge level, limit, charging state and cable from Tesla's Fleet API. Read-only: Tesla accepts a command only when it is signed with a key paired to the car, and this driver cannot sign. Use tesla_vehicle (BLE) to start the car's charge, or a charger FTW can control.",
homepage = "https://developer.tesla.com/docs/fleet-api",
http_hosts = {
"fleet-auth.prd.vn.cloud.tesla.com",
Expand Down
Loading