{% from "partials/dialog_msg.html" import dialog_msg %} {% from "partials/device_multiselect.html" import device_multiselect %}
Setup Guide

What this bridge could read from the gateway, and what still needs you. Everything here can be changed later.

Status:

Essentials
Environment
Runtime
Connection
Active host
Configured host
Port
Timeout
Retries
Subnet
Poll interval
Automation Constants
const.* sensors

SoC parameters your automations use — available as const.* condition sensors in the Schedule builder. Not read from the aGate; set them here.

System Setup
system.* sensors

Install characteristics for this gateway — derived from the aGate where possible, editable below. Exposed as system.* schedule sensors. Storing overrides does not write to the device.

Generator input derived
Grid-forming derived
Whole-home backup derived
Load shedding derived
Non-backup loads panel derived
Battery warranty & wear Guide

From your battery warranty. The FranklinWH cloud, when signed in, fills the end date and warranted throughput; check them against your warranty and save. Nothing here writes to the device.

HEMS setup Guide
{% include "partials/plans_meters.html" %}
Location & Solar Guide
Each site's location and solar array. Set from a gateway on the site, or enter manually.

Powers the Solar Forecast card + weather/solar sensors (Open-Meteo, free). Auto-saves on change.

Gateways on this site

Azimuth (Open-Meteo convention): 0=south · −90=east · 90=west · ±180=north. Tilt = degrees from horizontal (roof pitch is typically ~20–25°).

{% include "partials/prices.html" %}
Gateways Guide
Name Host Enabled
No gateways configured.
Each gateway is one aGate. Disabling a gateway stops its poller (and unpublishes its HA entities). Requires writes enabled.
Edit gateway MOCK
Publish to Home Assistant (MQTT)
Enabled

The default gateway can't be disabled. Make another gateway the default first.

Default gateway default

The default gateway is listed first and is the active gateway when the page opens, and whenever the active one is disabled or offline. Enable this gateway before making it the default.

Mock host/port are managed by the in-process emulator. Changing aPowers restarts it. A mock is never published to Home Assistant.

Poll interval & timeout are global (Connection, above) and apply on reconnect.

Connection & diagnostics
Danger zone

Display
Theme Same preference as the sun/moon button in the top bar.
Power unit
Temperature unit
Navigation

Auto shows the bottom bar on phones and the sidebar on wider screens. Choose Sidebar only to turn the bottom bar off everywhere.

Show raw keys / cmdTypes The dim name·1301 API-key tags on the dashboard. Also the top-bar </> button.
Advanced tools Shows the Terminal console and Reboot gateway. Off by default — these issue raw commands to the aGate.
Accent colour

Display preferences only — stored in this browser, applied live. Theme and accent are the same settings the top-bar sun/moon button and the terminal header expose. Navigation: Auto uses the sidebar on tablets/desktop (≥ 768 px) and the bottom bar on phones; override to force either. Accent recolours the whole UI; a very pale custom colour can reduce contrast.

MQTT Guide
Enabled
Broker host
Port
Username
Password
Prefix
Discovery prefix
Connected
Help & documentation
Guide & docs
How the bridge works, the local / cloud / Modbus APIs, and setup.
Support info
A redacted snapshot (models, firmware, counts, settings) — no serials, host, location, or credentials. Paste into a GitHub issue.

  
Local history Guide
Record local history
Dashboard power history, Analytics and Billing & Utilities read only this store.

Turn off local history? Dashboard power history, Analytics and Billing & Utilities stop getting new data until you turn it on again. What is already stored is kept.

Set for this install (, an environment variable or add-on option), so it is changed there, not here.

Battery recordings: keep days, up to MB

In Home Assistant, the recorder also keeps the values this bridge publishes over MQTT, so this is a second copy of them. It stays on because the bridge's own charts read only this one.

{{ dialog_msg('history.msg') }}
Security Guide
Security
On: browsers and API callers sign in on the HTTPS port, each account's role decides what it can do, and port 8101 sends them there. Home Assistant's sidebar panel works without signing in.

Security is off (quick start, SECURITY=off): anyone on a trusted network can use the bridge, including battery control, without signing in. Turn it on here when you're done trying it.

Before you turn it on, add an admin account below.

{{ dialog_msg('security.switchMsg') }}
Accounts
For signing in on the HTTPS port. admin: everything. user: battery commands and schedules; everything else read-only. viewer: read-only. api: no sign-in or web UI; reads and battery commands with a token. Home Assistant users don't need one.

No accounts yet.

{{ dialog_msg('security.acctMsg') }}
Sign-in activity
Custom roles
Your own roles for accounts: pick the tabs it can open and what it can change. The bridge refuses everything else, not just hides it. Every role can open what every page needs (the top bar, alerts, the gateway list) and change its own password. admin, user, viewer and api stay as they are.

No custom roles yet.

{{ dialog_msg('security.roleMsg') }}
API tokens
For scripts and other systems: send Authorization: Bearer <token> to the HTTPS port. A token has its account's role; use an api account for most uses. Port 8101 ignores tokens.

No tokens.

{{ dialog_msg('security.tokMsg') }}
Your password
{{ dialog_msg('security.myPw.msg') }}
Trusted networks
Only browsers and API callers on these networks can reach the bridge; others get "not trusted" (403). Home Assistant's sidebar panel and the health check always get in.
Your address: (through Home Assistant)
One network (192.168.1.0/24) or address (10.0.0.5) per line. The list must include your address.
{{ dialog_msg('security.msg') }}
HTTPS port
The same web UI and API over HTTPS. No sign-in yet; trusted networks apply.

Storage & Admin Guide
Database storage
Table Rows Size Span
Export power history
Download the recent samples for analysis.
Backups
Snapshots of the full database (newest 10 kept).
No backups yet.

Restore overwrites the current database (schedules, sites/tariffs, history) with the snapshot — it asks to confirm first.

Control Guide
Read only
Allow writes
writes enabled
Log level
Notifications
Push notifications Guide
Critical alerts reach only the bridge UI Guide
Notifications check Guide
Auto-notify triggers Guide

Fire automatically on these events, delivered to the enabled devices below.

Notifications with buttons: who they go to.

Recent notifications
Running as an HA add-on — the Supervisor token is used automatically; add extra HA instances below only to reach devices on other instances.
HA Instances
No HA instances yet — add one (URL + long-lived token) to send notifications.
Companion Devices Get the Companion app How to add a device
No companion devices yet — Add device, Discover its notify service, Test, then Save.
Send a test notification
Test critical alert
Broadcast notification
Battery dispatch Guide

On startup the bridge checks for a scheduled dispatch it left in-flight and applies this policy. Release (the default) clears a force this bridge started and never released once its window has passed, and re-arms the auto-release if the window is still open. A force with no record here (another Modbus client's) is never touched. Notify only alerts your notification devices and never commands the battery on boot. Resume re-forces for whatever time is left in the window. Interruptions are always logged (Schedule → activity log, battery-dispatch filter).

FranklinWH Cloud API
Enables reserve SoC, TOU schedules and force charge/discharge. The local protocol accepts those writes and silently discards them, so they can only run through the cloud. Stored on the bridge's data volume; the password is never returned by the API.
Email
Password
Type or paste your FranklinWH app password. Don't use a password the browser suggests, and press Show to check it before Save & test.
Gateway serial
Cloud sign-in is on hold. FranklinWH said: ""
No sign-in is sent while the hold is on. FranklinWH locks the account (the FranklinWH app too) after a few wrong passwords. Check the password by signing in to the FranklinWH app first, then clear the hold and try once.
Mapping Guide

Where each value comes from, and a Probe that reads it live. Probe before you trust a mapping — a field's name does not tell you which frame carries it.

Protocols
Field mappings
No mappings yet. Add a row, type the raw field name (e.g. ibgRunStatus), and press Probe — it finds the frame for you.

A probe reads the device now and shows the frame it used and the exact request sent, so a mapping can be checked rather than assumed. SunSpec note: this aGate's map starts at offset 0, not 40000 — a 4xxxx address must be converted first.

Changes here apply and persist immediately — no separate Save step.

All other settings are read-only here — restart to change (set via env / the add-on Configuration tab).

In the Home Assistant add-on, broker / host / poll-interval settings are managed in the add-on's Configuration tab.