Skip to content

0.5.18 — 2026-10-30

Breaking

  • Every API call that acts on an aGate must name its gateway (#379). ?gateway= takes the gateway's ID or its locked aGate serial. Leaving it out used to mean the default gateway, and the metrics routes then mixed every gateway's rows. Now it is refused with 400, before any device I/O. A malformed value gets 422, an unknown one 404 and a gateway stopped for its identity 409. This applies to single-gateway installs too. /api/dispatch needs gateway_id. Scripts, dashboards and other bridges that call this API must add the gateway. The web UI always does.
  • A cloud aGate serial must be one of this bridge's gateways (#379). The serial in the cloud settings, and the one typed when signing in, must be locked to one of this bridge's gateways. An unknown serial gets 404 and a malformed one 422, before any sign-in. The grid-limit cloud check reads the gateway's own serial, or nothing. It used to read the configured serial, whichever gateway was being written. The cloud's VPP status is stored only on the gateway with that serial, never on the default.

Added

  • Scheduler Monitor (#345). A Monitor card at the top of Scheduler → History shows why each schedule is or is not running: idle, blocked (with the failing conditions and their live values), holding, ready, running, skipped, deferred, retrying or done. One line per schedule every tick; tap or hover for each condition. Kept in memory only (the last 500 lines). It reads nothing extra from the aGate. Also at GET /api/scheduler/monitor.

Changed

  • The default gateway takes over when the active one can't be shown (#383). If the gateway on screen is disabled, removed, offline or stopped for its identity, the page switches to the default gateway. The top bar now names the active gateway even when it's the only one, and disabled gateways aren't offered in the selector.
  • "Site (All Gateways)" is replaced by a read-only All gateways view (#383). The page always shows and controls one gateway. All gateways… in the gateway selector opens every gateway at a glance, laid out like FWHAI's Gateways tab: counts (Registered, Polling active, Unavailable, Stopped), one row per gateway with its health, grid, mode, SoC, poll status, last poll and power flows, and a site total. Clicking a row shows that gateway; there are no controls. The page now opens on the default gateway, which is always listed first; it no longer reopens the gateway picked last time. Removing the default gateway makes the next one the default straight away, not at the next start.
  • The schedule form can be made bigger (#337). Default, Medium and Full size it, and its corner drags to any size in between; the browser remembers the size. A notification's message is now a box that grows as you type and can hold several lines. Same as the Modbus Bridge.

  • Scheduler Explain remembers its level (#336). Min, Medium or Full stays as you last chose it in that browser.

  • After a restart, a force the bridge left running is released by default (#199). The default dispatch_interrupt_policy is now release (was notify): at start-up a force this bridge recorded and never released is released if its window has ended, or its auto-release is re-armed if not. A force with no record here is left alone. A policy you saved is kept. The unused release_stale(), which would have released any force, is gone.

Fixed

  • The VPP monitor watches every gateway (#379). It only checked the default gateway, so another gateway's remote VPP dispatch (1707 programme 9) never showed on its row in the All gateways view, and its start and end were never logged or notified. Each gateway is now checked from its own cached reading, with no extra device reads. Its state is kept apart from the others, and every message names the gateway.
  • Each gateway is locked to one aGate serial (#381). The bridge used to take whatever serial a gateway's aGate reported on every read, so a gateway pointed at another aGate carried on as if nothing had changed, and two gateways could share one aGate. Now the serial is stored and locked to the gateway the first time it is reported. A gateway that later reports a different serial, or one another gateway already has, is stopped: nothing is recorded, published or written for it. The reason is logged, sent as a "FranklinWH gateway stopped" notice and shown on the gateway, and the API refuses it with 409. Existing gateways lock on their first read after the update. A gateway's ID is always the bridge's own: if the roster cannot be read at start-up, no gateway is set up under its IP address any more; the bridge logs the error instead.
  • Re-discovery adopts only this gateway's own aGate (#356). When a gateway stopped answering, the network sweep could pick another aGate: a gateway whose serial was never read used the default gateway's serial, and with no serial match the first aGate that answered was taken. Two gateways could then poll the same aGate, and forces and schedules acted on the wrong battery. Now only an aGate with the gateway's own serial is adopted, never an address another gateway uses, and a gateway with no serial yet does not sweep. The "FranklinWH aGate moved" notice names the gateway.
  • Site view no longer writes to the default gateway (#350). Site view shows every gateway, but some per-gateway controls (the top bar's operating mode, grid limits, the raw console and Terminal, MQTT Republish/Unpublish, battery recording, Energy costs close and import, System Setup save, location sync) sent their write to the default gateway. In Site view every per-gateway control is now disabled and says "Choose a gateway to change this", and the page refuses such a write before sending it. The API is unchanged: a call with no ?gateway= still means the default gateway. (Site view itself is now replaced by the read-only All gateways view: #383.)

  • The reserve SoC is written to the gateway on screen (#351). It used to go to the gateway in the cloud settings, while the audit row named the gateway you were viewing. It now goes to that gateway's serial. It's refused with the reason for a mock gateway, for a gateway whose serial hasn't been read yet, and for a gateway other than the one in the cloud settings. The audit row names the gateway written.

  • Switching gateway reloads Circuits, Generator, Solar, Health, Device and System Setup (#352). They kept the first gateway's data, so a circuit toggle, generator edit or System Setup save could write one gateway's values to another. They now clear on a switch and reload, their controls come back only with the new gateway's data, and a late reply for the previous gateway is dropped.

  • Battery Control and the top bar's Release act on the gateway on screen (#349). They used to force and release the default gateway (or FWH_MODBUS_HOST), whichever gateway you were viewing, and showed the default's force, ratings and SoC. /api/battery/command now takes ?gateway=. In Site view the widget asks you to choose a gateway, and Release releases each force this bridge holds on its own gateway.

  • The Modbus client host override and FWH_MODBUS_HOST apply only to the default gateway (#354). They used to redirect every gateway's forces and releases to one host. A force is now recorded under the gateway's own host, so the scheduler's conflict check also sees a force started from Battery Control.
  • Two forces started at the same moment keep their own SoC limit (#355). A force on one gateway could pick up another gateway's SoC reader, so its target SoC was checked against the wrong battery.
  • The default gateway no longer changes when you edit a gateway (#182, #146). It used to be whichever gateway was registered first, so editing, restarting or republishing the default quietly made another gateway the default. Unbound schedules, the VPP check and every call that names no gateway then went to a different aGate. Now one gateway is stored as the default and shown with a badge. Make default in a gateway's Edit dialog is the only way to move it. On update, the gateway that was the default at start-up is marked, so nothing changes.
  • Gateways are enabled, disabled and removed from the Edit dialog (#146). The Enabled toggle in the table did nothing. The default gateway can't be disabled, and a gateway can be removed only once it is disabled. Each refusal says why in the dialog. The "Please confirm" box now opens above the Edit dialog instead of behind it.
  • Disabling a gateway releases this bridge's force on it first (#353). Before, the force kept running with no window end to release it and no target-SoC check. If the release fails, the gateway stays enabled.
  • A schedule's window end releases only its own force (#189). It used to send Release whether or not it had fired, which also ended a force from another schedule or from Battery Control. History now says "no release: this schedule did not hold the force". On-exit HA actions still run at every window close, as before.

  • A refused force or a rejected mode write is a failure, not fired (#191). A force refused because the Modbus client (this bridge) is off or can't reach the aGate, and a mode or off-grid write the aGate rejects, are now logged error and retried while the window is open.

  • Deleting a running schedule releases its force (#195). Before, the force kept running until its duration or target SoC ended it.

  • Priority now counts against a running force (#196). A force schedule that becomes ready later no longer takes over a running force of higher priority under If busy = override; it is deferred and History names the schedule that holds it.

  • A force on one gateway no longer drops another gateway's limits (#194). The bridge supervised one force for the whole site, so a second gateway's force ended the first one's time limit and target SoC. Each gateway's force now has its own.

  • Stop, Pause, shutdown and the start-up check act on the right gateway (#192). They released the default gateway's aGate. Stop and Pause now release on the gateway the force was sent to, a shutdown releases every gateway holding a force, and the start-up check covers every gateway.

  • Run now uses the schedule's gateway (#193). It used the gateway selected in the top bar. A schedule bound to a gateway now runs there; the top bar's gateway is used only for an unbound or scope "all" schedule.

  • A scope "all" schedule fires on every gateway (#270). The first gateway to fire marked the occurrence done for all of them, so it ran on only one gateway. Each gateway now fires it once per occurrence.

  • A failing write no longer holds up every schedule (#197). Scheduled writes made up to 5 attempts with waits inside one scheduler tick, so every gateway's schedules waited. Now each tick makes one attempt, and the existing backoff (30 s up to 10 min) retries.

  • FORCE is back, for this bridge's own forces (#333). 0.5.17 showed every force as VPP. The top bar, the gateway switcher and Run status now show FORCE while this bridge holds a force, and VPP when another remote controller has the aGate (programme id 9). A force from another client still shows VPP: the bridge does not read SunSpec Model 704.

  • Dialogs show their results inside, not in a toast behind them (#293). Errors, missing fields and test failures now stay in the dialog until your next action: the schedule form and its Test buttons, schedule Import, the grid limits write, Energy Costs import, smart-circuit and generator schedules, the Home Assistant instance forms, Broadcast, acknowledging alerts and the history date range. A "Saved" message appears only after the dialog closes. When a write is sent but the read-back does not confirm it (smart circuits, generator), the dialog now stays open and says so instead of closing.

  • The version and build show on a phone (#326). They were only in the sidebar footer, which is hidden on a narrow screen. The More sheet now shows them.

  • Copy works over http (#327). Settings → Support info Copy did nothing when the bridge was opened over plain http, which is common through Home Assistant. It now copies there too. If the browser blocks copying, it says so next to the button. The Device console's Copy both no longer says "Copied" when nothing was copied.

  • Settings → Integrations: turning a Home Assistant instance off or on no longer reports an error (#170). The change was applied, but the page then called a function that does not exist and showed "Could not change it".

  • Scheduler Explain says when a Home Assistant action runs (#335). An action set to run on exit was listed as if it ran when the schedule fired. It now reads "… when it ends", or "… when it starts and when it ends" for entry & exit, the same wording as the Modbus Bridge.