Skip to content
Open
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
9 changes: 0 additions & 9 deletions .changeset/battery-limit-words-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bundle-driver-fixes.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/inverter-stream-headroom.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/mqtt-read-requests.md

This file was deleted.

57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/<portal ID>/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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
Loading