{# First-run setup — a modal, opened once when nothing is configured. Shape borrowed from the Modbus Bridge's wizard so the two feel like one product: a centred dialog with a linear `step` flow, and INTENT first. Three doors, because the three reasons someone opens this app for the first time are genuinely different — connect real hardware, look around with a mock, or configure it by hand. It waits for the legal disclaimer: both are modals, and opening setup over an unaccepted disclaimer buries the one thing the user is obliged to read. Its z-index sits BELOW the disclaimer's deliberately, so if the ordering ever slips the mistake is visible rather than hidden. It can always be closed. Closing records `skipped`, which stops the prompt and disables nothing; Settings → Setup is the same content, reachable for ever. #}
What would you like to do?
How much hardware is installed? Most sites have one of each — change it if yours differs.
The mock will be built with this many aPowers, so it matches the shape you described.
This is only what the bridge should expect to find — it does not change your system.
Where is this site? Schedules run on the site's clock, not this computer's — and every gateway here uses the same one.
This browser says — change it if the site is somewhere else.
Every mock gateway will be created on this clock, so they agree with each other and with your schedules.
The aGate's own clock is set on the device. If one reports a different offset, Settings → Setup will say which.
Scanning your network for aGates on TCP , where every aGate listens.
—
aGate on a VPN, Tailscale or another VLAN? Type its own network here — this bridge can only sweep networks it can reach.
Ports: leave blank for . To find emulators, give a port, list or range (9020, 9000,9020 or 9020-9030): a gateway on any other port is an emulator.
A mock gateway runs inside this bridge — a simulated battery with aPowers, power flow, modes and Smart Circuits. Nothing leaves this machine.
It is not a simulation of your site, and it has no generator or V2L.
Your FranklinWH app account — optional.
Everything this bridge reads from the aGate works without one. An account adds the things the local connection physically cannot do:
Stored on this machine in the bridge's own settings file, in plain text, and used only to talk to FranklinWH. Nothing is saved unless the sign-in works, and you can add or remove it later in Settings → Integrations.
— nothing was saved.
Skipping is fine; the reserve slider will say it needs this when you reach for it.
Check what each gateway reports, and answer what it can't tell. This stays in Settings → Setup if you want to finish it later.
{% include "partials/install_profile.html" %}Running inside Home Assistant: the connection to it is set up for you, and so is the MQTT broker once the Mosquitto add-on is installed.
Its sensors and controls appear in Home Assistant through MQTT discovery. You can change this later on the MQTT tab.
Could not run the checks.
Which mode do you treat as normal? Schedules and the Automation constants go back to it.
This doesn't change the aGate's mode now. It is also in Settings → Automation.
The emulator's address and its Direct Connect port. It is added as a gateway and read like an aGate; its Modbus TCP Server is set under Modbus TCP in the setup list.
The Modbus Bridge already publishes this aGate. Two Modbus writers on the aGate's Modbus TCP Server can work against each other: skip this unless the other one's writes are off.
This bridge's Modbus client reads battery ratings and sends force dispatch through the Modbus TCP Server of the active gateway: an aGate or an emulator.
Leave the address blank to use the active gateway's. Test connects to the Modbus TCP Server now. Also on the Control tab.
Link your Home Assistant? The bridge uses it for notifications and to check what Home Assistant already has before anything is published.
Home Assistant → your profile → Security → Long-lived access tokens → Create token.
FranklinWH entities already in Home Assistant. Old ones from this bridge can be removed; other integrations are only reported, never changed.
Checking…
None found.
The FranklinWH integration (richo) is running in Home Assistant. The bridge publishes its own entities, so while both run you have two sets.
Turn it off when you're ready: in Home Assistant's configuration.yaml, remove
(or comment out with #) its platform: franklin_wh entries under
sensor: and switch:, then restart Home Assistant. Its
history stays; put the entries back to turn it on again.
What the bridge adds:
Automatic setup is finished. This is what is set up now:
Anything skipped, and everything else (tariffs, notifications, security), is in .
Reading the HEMS setup…
HEMS looks ahead for this gateway: solar and home-load forecasts, what each kWh through the battery costs in wear, and a description of your home that planning can work from. It never writes to the aGate or the FranklinWH cloud, and nothing is switched or scheduled from your answers yet.
Forecasts and wear figures work without this; switching it on adds your home's usage and heavy loads. Guide
The solar forecast uses this site's location and array, set on Location & Solar.
No solar panels? Leave it unset and press Next: the load forecast and wear figures don't need it. This closes the wizard; come back to this task from the setup list.
From your battery warranty. When the FranklinWH cloud is signed in, the end date and warranted throughput are filled in: check them against your warranty.
From the last four weeks of this gateway's home load.
Not enough history yet: these fill in on the HEMS setup card as the days build up. Press Next to carry on.
Each large appliance you want planned around. This bridge can control: .
A control's details (energy and deadline, off and on times, soak triggers, EV fields) are on the HEMS setup card.
HEMS setup stays off. Forecasts and wear figures still work.
You can save with these open and finish a load's details on the HEMS setup card.
Save writes this bridge's settings only: the Battery warranty & wear and HEMS setup cards, never the aGate or the cloud. The solar calibration and the load model improve by themselves over the next weeks.