Skip to content

0.5.14 — 2026-10-23

Added

  • A bridge-wide "Bridge problem" sensor in Home Assistant (#286), on the bridge's own
  • The terminal has a Copy button, next to clear. It copies everything on screen, and works over plain http (HA ingress) too. device next to "Bridge heartbeat". It carries every open alert, including those of a gateway that has never answered and so has no device of its own. The per-gateway sensors stay.

  • Alerts are stored records (#271, the shared alert spec agreed with the Modbus Bridge). A new alerts table in the bridge's database keeps each fault, how often it repeated, when it cleared and who acknowledged it, across restarts. Closed alerts are kept 90 days; open ones are never removed.

  • Alert API (#271). GET /api/alerts lists alerts (filters open, kind, since), POST /api/alerts/{id}/ack acknowledges one and records where it came from (source:ui, source:api or source:ha), and the new GET /api/status gives the summary alerts: {level, open, latest_id, changed_ts}; changed_ts moves whenever an alert opens, resolves or is acknowledged. An alert monitor runs in the background as a listed worker; if it stops, /api/status says so and the bridge's health check is unaffected.
  • What raises an alert (#271). The aGate unreachable for 5 minutes, or no live data for 2 minutes (critical); the MQTT broker disconnected for 5 minutes (warning); a background worker that stopped responding or crashed (critical); any control the Audit Trail records as failed, such as a refused worker restart (critical, "Command refused"); a scheduled action that failed or missed its window (critical). Each clears or is counted by the shared spec's rules: a condition resolves after 2 minutes good (1 for live data), and repeats of the same event within 10 minutes add to one alert rather than making new ones.
  • Critical alerts reach Home Assistant even with no phone set up (#271). Each critical alert creates a Home Assistant persistent notification (fwh_dc_alert_<id>) whenever the bridge can reach Home Assistant, whether or not any notification device is configured. It is retried until delivered, and dismissed when the alert is acknowledged in the bridge. Dismissing it in Home Assistant does not acknowledge the alert.
  • Switching Home Assistant notifications off keeps alerts in the bridge (#271). With the Push notifications switch (ha_notify) off, critical alerts create no Home Assistant notification; each skipped one is recorded as "skipped: HA channel off". The bridge's alert window still opens, and Settings → Notifications shows "Critical alerts reach only the bridge UI" for as long as the switch is off.
  • "Bridge problem" and "Bridge heartbeat" in Home Assistant (#271). Each gateway's device gets a problem binary sensor that is on while an alert is open, with the open alerts as attributes; it stays available while the aGate is offline, so automations can react without any notify service. A separate "FranklinWH Direct Connect Bridge" device has one "Bridge heartbeat" timestamp, sent every minute by the alert monitor while MQTT is on and connected, whatever any gateway is doing. A heartbeat that stops moving means the bridge itself has stopped.
  • Critical alerts open a window that stays until acknowledged (#271). It says what happened, when (in the site's time), what it means and what to do, with a link. Each alert has its own "I understand" box, and OK is enabled once every box is ticked; Escape and clicking outside do not close it. Alerts raised while no browser was open, for example by a schedule, show on the next visit, and a condition that clears while unacknowledged updates to "…–13:27, resolved" without waiting for another alert. A condition that has been acknowledged but is still active shows as a red bar under the top bar until it clears, and a badge in the top bar counts open alerts and opens the list, where warnings are acknowledged.

Security

  • Logs no longer carry the FranklinWH cloud sign-in token or the gateway serial (#295). At log level DEBUG, the HTTP client's own loggers wrote every request header to the log, the cloud login token and cookie included. At the normal level they wrote each cloud request address, which contains the gateway serial. Those loggers now show warnings only, whatever the bridge's log level. If you ran at DEBUG with the cloud signed in, sign in again (Settings → Integrations → FranklinWH Cloud API) to get a new token.

Changed

  • franklinwh-cloud is pinned to 0.6.1. Its debug logging no longer writes the FranklinWH sign-in token, passwords or full serials, which it did before at debug level. Turning debug logging on also no longer starts a new cloud session.
  • Guide opens this bridge's published docs (#257). The sidebar, the More sheet and Settings → Help link straight to Docs and User Guide on the bridge's own site, in a new window. The in-app panel that said the docs weren't bundled, and pointed at the library's site, is gone.
  • Logs show a short source name (#239): poller instead of franklinwh_direct_connect_bridge.poller. The full name is the tooltip and the filter value, and the column now shows on phones.

Fixed

  • The companion device dialog shows its own results (#293). Discover, Send test and a failed Save now answer inside the dialog, and the message stays until your next action. Before, they went to a toast behind the dialog that faded away unseen.

  • No false OFF-GRID after the aGate restarts (#288, #44). For a minute after a reboot the aGate reports every value as 0, which read as "off-grid, SoC 0%" and could send an off-grid notification. That start-up frame now counts as no reading, and SoC shows as unknown rather than 0. Off-grid is decided by the aGate's own off-grid state (1723) when it's read; the relays only corroborate it.

  • An unreachable gateway no longer stalls the scheduler (#284). Each tick read the dead gateway's clock and waited about a minute for it, delaying every other gateway's schedules and raising "Background worker stalled". Only a poll that reads the gateway now counts as fresh data, so the scheduler skips a gateway that is down and says why.
  • Settings → Setup → "Where is this site?" reads the aGate and can be set there (#263). With a real aGate it shows the offset and location the aGate reports, marked READ, and offers the timezones at that offset to confirm. It has its own Save, so the wizard no longer has to be re-run. A demo with mock gateways only is still simply asked.
  • Every notification is also in the app log (Logs tab), as a warning. With no companion devices set up, the notifications were recorded only in Settings → Notifications and delivered nowhere. In that list the time now comes first.
  • A schedule with unknown fields is refused (#269). POST/PUT /api/schedules ignored fields it didn't recognise, so a mis-shaped request saved a schedule built from defaults. It now answers 422 and names the field.
  • The first-use disclaimer fits a phone screen (#231). Its text scrolls and its Continue button stays in view; Documentation opens the published guide instead of a page that was not found.
  • The wizard's "Yes" to Home Assistant works on the add-on (#264). It was disabled whenever MQTT was already on, the add-on's default, so the wizard's gateway was never published.
  • No connection warnings before a gateway is set up (#265). A fresh install logged "Name does not resolve" on every page load.
  • Editing a schedule through the API no longer switches it back on (#168). A PUT /api/schedules/{id} that left out enabled turned a disabled schedule on; it now keeps its on/off state unless enabled is sent.
  • The scheduler sensor grid.connected follows the off-grid state (#206). It was worked out from grid power and read 0 (disconnected) whenever grid power was exactly 0 W while on grid. It now reads 1 on grid and 0 off grid, and has no value when the off-grid state is not known.
  • A stale AEMO NEM price is no longer used forever (#207). When AEMO could not be reached, tariff.spot_price (and a dynamic NEM tariff) kept the last price however old it was, so a price-gated schedule could act on a price from hours earlier. The last price is now kept for 30 minutes, as on the Modbus Bridge, and then the sensor has no value until AEMO answers.
  • Next fire is right for Every N minutes of 24 hours or more (#208). The card showed the anchor plus N, but the schedule runs daily at the anchor; it now shows the next anchor. The same applies to the last slot of a day when N does not divide 24 hours.
  • A force charge or discharge with no power set is refused (#209). Sent through the API with an empty power, it ran as a 0 W force; it is now skipped with the reason "no power set". Always and zero-duration schedules no longer give a failed write only 1 second to retry: they use the normal retry time limit.
  • An Always schedule fires every time its conditions start to hold (#190). It fired once, ever: its single stored run stayed finished, across restarts, so every later rising edge sent nothing. Each rising edge is now its own run. The release on the falling edge is unchanged.
  • A schedule with its key setting missing no longer fires every day (#198). Weekly with no days, Monthly with no day of the month and One-off with no date now never fire, and a Recurring window whose start equals its end is empty instead of open all day. Saving or importing one of these is refused with the reason (HTTP 422 on save); schedules already saved this way stop firing.
  • Schedules are checked when they are saved or imported (#202). A schedule whose action, Home Assistant actions, conditions, cron expression, interval, days, months, day of the month or dates the engine cannot use is refused with the reason (HTTP 422 on save; listed as an error per entry on import), instead of failing or being skipped when it runs. Import also warns about a condition on a sensor this bridge does not know, or on a Home Assistant entity that is not exposed. An imported Modbus Bridge entry whose Home Assistant action this bridge cannot run is now reported as an error rather than saved.
  • Scheduler history names the gateway (#205). Each row written by a gateway's scheduler run now records that gateway, and History shows its name beside the schedule, so the rows of a rule that runs on every gateway can be told apart. GET /api/schedules/log returns it as gateway_id. The history table gains a gateway_id column; older rows have none.
  • Next fire, the timeline and Test follow the site's clock (#161). They used the bridge container's clock while schedules fire on the aGate's, so when the two zones differed the card's Next:, ● active, the timeline and Test were off by the difference. They now use the clock of the schedule's gateway (the default gateway for an unbound schedule), and Test evaluates that gateway's values instead of always the default gateway's. When the aGate's clock cannot be read, the scheduler keeps using the zone it last read, and logs it, instead of silently switching to the container's.