From 89d084ddbe5455c6884af9b46a4c1cb873f57f78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 15:07:57 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/battery-limit-words-fix.md | 9 ---- .changeset/bundle-driver-fixes.md | 5 --- .changeset/inverter-stream-headroom.md | 30 -------------- .changeset/mqtt-read-requests.md | 21 ---------- CHANGELOG.md | 57 ++++++++++++++++++++++++++ package-lock.json | 4 +- package.json | 2 +- 7 files changed, 60 insertions(+), 68 deletions(-) delete mode 100644 .changeset/battery-limit-words-fix.md delete mode 100644 .changeset/bundle-driver-fixes.md delete mode 100644 .changeset/inverter-stream-headroom.md delete mode 100644 .changeset/mqtt-read-requests.md diff --git a/.changeset/battery-limit-words-fix.md b/.changeset/battery-limit-words-fix.md deleted file mode 100644 index 60366e0c7..000000000 --- a/.changeset/battery-limit-words-fix.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"ftw": patch ---- - -Fix two phrases from the battery limit verdicts. A reported battery limit -without a known target now reads "The battery reports a limit below what FTW -asked for." instead of doubling "the". The Numbers list now labels a -battery's learned current limit "Battery current limit", not "Charger lets -the car take". The words match the web app's. diff --git a/.changeset/bundle-driver-fixes.md b/.changeset/bundle-driver-fixes.md deleted file mode 100644 index 05a7714ee..000000000 --- a/.changeset/bundle-driver-fixes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ftw": patch ---- - -Bundle the driver fixes from the battery review: Growatt and victron_mqtt now report battery power with the right sign (charging positive); victron, ferroamp_modbus and growatt leave a failed read out instead of sending 0, and ferroamp_modbus drops NaN and infinite values; GoodWe, Fronius GEN24, AlphaESS and Kstar read the registers their vendors document; victron_mqtt sends the Venus OS keep-alive and declares it as a read request. None of it is verified on hardware yet. diff --git a/.changeset/inverter-stream-headroom.md b/.changeset/inverter-stream-headroom.md deleted file mode 100644 index d99b5e779..000000000 --- a/.changeset/inverter-stream-headroom.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -"ftw": minor ---- - -Read a hybrid's inverter stream, and say when its inverter has no grid -headroom left. - -The driver contract lets a battery or hybrid driver report its AC stage with -`host.emit("inverter", …)`: its power, phases, rating, and -`available_import_W` / `available_export_W`, how much more the inverter will -take from or give to the grid now. Core refused that emit, so the Solis C&I -drivers lost it on every poll. Core now keeps the latest inverter reading per -driver. `/api/status` shows it while the driver is live (`inverter_w`, -`inverter_available_import_w`, `inverter_available_export_w`, -`inverter_updated_at_ms`), and `/api/drivers/{name}` shows the last one with -its age (`inverter`). It is not a device type: no site total, dispatch, fuse -guard or energy ledger reads it, and none of it is written to history. A -field that is not a usable number is left out and the rest kept. - -A battery that gives part of its order while its inverter reports, in the -same driver poll, no more import headroom while charging, or no more export -headroom while discharging, now reads "Limited by the inverter", with words -such as "The inverter reports that it can take no more from the grid now. -FTW asked for 5.0 kW charge." A battery that gives nothing keeps its warning, -since a dead battery on a site that may not export sees no export headroom -either; only the battery's own report of 0 available explains it. Headroom -above 100 W, headroom from an earlier poll, and a stale, offline or faulted -driver explain nothing. Wrong direction, power above the order or while -idle, a changed setpoint and lost readings keep their own reasons. Limited -verdicts never send the "not following" notice. diff --git a/.changeset/mqtt-read-requests.md b/.changeset/mqtt-read-requests.md deleted file mode 100644 index b0066afbf..000000000 --- a/.changeset/mqtt-read-requests.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -"ftw": minor ---- - -A read-only MQTT driver from the signed channel may now send the read -requests its signed policy declares, such as Victron's -`R//keepalive`. - -Venus OS on a Victron GX publishes its values only while a client sends that -keep-alive. FTW refused every publish from a signed read-only driver, so -`victron_mqtt` from the channel went stale on a GX with no other MQTT client. - -Core now lets such a driver publish to a topic its signed manifest lists, and -to nothing else. The grant needs `mqtt.subscribe` and no write permission, so -an older Core runs the same signed driver read-only and refuses the request. -A listed topic must start with `R/`, Venus's read-request namespace; a `+` -stands for one whole level, and `#` is refused. Each request carries at most -1 KiB, and a driver may send six a minute. Setup measurement mode holds read -requests as it holds writes. Every other publish, Modbus write and POST from a -read-only driver is still refused. Bundled, local and control drivers behave -as before. diff --git a/CHANGELOG.md b/CHANGELOG.md index 600688eff..d1c11dbfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,62 @@ # Changelog +## 0.168.0 + +### Minor Changes + +- 0bd640c: Read a hybrid's inverter stream, and say when its inverter has no grid + headroom left. + + The driver contract lets a battery or hybrid driver report its AC stage with + `host.emit("inverter", …)`: its power, phases, rating, and + `available_import_W` / `available_export_W`, how much more the inverter will + take from or give to the grid now. Core refused that emit, so the Solis C&I + drivers lost it on every poll. Core now keeps the latest inverter reading per + driver. `/api/status` shows it while the driver is live (`inverter_w`, + `inverter_available_import_w`, `inverter_available_export_w`, + `inverter_updated_at_ms`), and `/api/drivers/{name}` shows the last one with + its age (`inverter`). It is not a device type: no site total, dispatch, fuse + guard or energy ledger reads it, and none of it is written to history. A + field that is not a usable number is left out and the rest kept. + + A battery that gives part of its order while its inverter reports, in the + same driver poll, no more import headroom while charging, or no more export + headroom while discharging, now reads "Limited by the inverter", with words + such as "The inverter reports that it can take no more from the grid now. + FTW asked for 5.0 kW charge." A battery that gives nothing keeps its warning, + since a dead battery on a site that may not export sees no export headroom + either; only the battery's own report of 0 available explains it. Headroom + above 100 W, headroom from an earlier poll, and a stale, offline or faulted + driver explain nothing. Wrong direction, power above the order or while + idle, a changed setpoint and lost readings keep their own reasons. Limited + verdicts never send the "not following" notice. +- e1de7f1: A read-only MQTT driver from the signed channel may now send the read + requests its signed policy declares, such as Victron's + `R//keepalive`. + + Venus OS on a Victron GX publishes its values only while a client sends that + keep-alive. FTW refused every publish from a signed read-only driver, so + `victron_mqtt` from the channel went stale on a GX with no other MQTT client. + + Core now lets such a driver publish to a topic its signed manifest lists, and + to nothing else. The grant needs `mqtt.subscribe` and no write permission, so + an older Core runs the same signed driver read-only and refuses the request. + A listed topic must start with `R/`, Venus's read-request namespace; a `+` + stands for one whole level, and `#` is refused. Each request carries at most + 1 KiB, and a driver may send six a minute. Setup measurement mode holds read + requests as it holds writes. Every other publish, Modbus write and POST from a + read-only driver is still refused. Bundled, local and control drivers behave + as before. + +### Patch Changes + +- 0bd640c: Fix two phrases from the battery limit verdicts. A reported battery limit + without a known target now reads "The battery reports a limit below what FTW + asked for." instead of doubling "the". The Numbers list now labels a + battery's learned current limit "Battery current limit", not "Charger lets + the car take". The words match the web app's. +- c1c58c7: Bundle the driver fixes from the battery review: Growatt and victron_mqtt now report battery power with the right sign (charging positive); victron, ferroamp_modbus and growatt leave a failed read out instead of sending 0, and ferroamp_modbus drops NaN and infinite values; GoodWe, Fronius GEN24, AlphaESS and Kstar read the registers their vendors document; victron_mqtt sends the Venus OS keep-alive and declares it as a read request. None of it is verified on hardware yet. + ## 0.167.0 ### Minor Changes diff --git a/package-lock.json b/package-lock.json index 8519dcdcc..5ad41276e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ftw", - "version": "0.167.0", + "version": "0.168.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ftw", - "version": "0.167.0", + "version": "0.168.0", "license": "SEE LICENSE IN LICENSE", "devDependencies": { "@changesets/cli": "^3.0.3" diff --git a/package.json b/package.json index 5103629fd..ca7d18647 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ftw", - "version": "0.167.0", + "version": "0.168.0", "private": true, "type": "module", "description": "FTW — local-first home energy coordination. Version metadata only; the runtime is Go and the mathematical planner is the compiled Energyplan worker.",