Use cases: "I want to…"¶
Back to the guide index · At a glance
Find what you want to do, read the short how-to, then follow the links for the details.
| I want to… | Jump to |
|---|---|
| Get started | developer · spare Mac · Home Assistant OS · try it first |
| See what is happening | any screen · system overview · network map · energy history · health checks |
| Control and automate | battery dispatch · EV charger on solar · complex rules |
| Be told | events · automated notifications |
| Make it mine | customise the UI |
| Share and connect | view-only users · other apps |
| Money | costs and bill estimate |
Get started¶
I'm a developer¶
The Bridge is a working example of the Direct Connect API, with a REST API and an OpenAPI schema served by the Bridge itself (Swagger and ReDoc pages included). Run it from a development checkout, point it at a mock gateway, and write against the API or MQTT.
- API examples: OpenAPI and MQTT discovery
- Developers Guide: REST API and OpenAPI, endpoint reference, MQTT
- INSTALL.md → Development
- Direct Connect API library
I have a spare Mac laptop¶
Run the Bridge on the Mac with Docker (Docker Desktop) or Python 3.11+, point it at your aGate's address, and open the web UI in a browser. The Bridge only records history and runs schedules while it is running, so keep the Mac plugged in and stop it from sleeping. Give the aGate a fixed address on your router so the Bridge can always find it.
- Quick install, route A: Windows, macOS or Linux, from the command line
- Installing → Docker and Standalone (the screenshots there were taken on Linux; the steps are the same)
- INSTALL.md
I use Home Assistant OS¶
Install the Bridge as a Home Assistant add-on: add this repository to the add-on store, install FranklinWH Direct Connect Bridge, set your aGate's address and start it. It opens with Open Web UI (turn on Show in sidebar to add it to the sidebar), links itself to Home Assistant, and finds the Mosquitto broker on its own, so your aGate shows up as a device with sensors and controls.
I want to try it before I connect my aGate¶
Add a mock gateway under Settings → Gateways → Add mock. It is a simulated aGate inside the Bridge, with solar, battery and load that follow the time of day, so you can try every screen and test a schedule without touching a real battery. Developers can also run the two-gateway demo described in the README.
See what is happening¶
See my aGate in a browser, on a phone or on a tablet¶
The web UI works on desktop, tablet and phone. On a phone, add it to your home screen so it opens like an app. To reach it away from home, use Home Assistant's remote access or a VPN.
See a detailed system overview¶
Open System view from the top bar. It draws your site: grid, aGate, home, solar, batteries and circuits, with power flowing between them. Under Options you can add voltage and frequency, today's energy, the power on each wire, alarms, and solar forecast against actual.
See a detailed network map and troubleshoot¶
The Network tab shows the connection end to end: the local link to the aGate, the Modbus client (this bridge), MQTT and the cloud, with latency, link history and missed polls. The Health tab shows each gateway's connection, and Logs keeps the Bridge's own log, searchable and with a live follow mode. To find where a value on screen comes from, use the Probe under Settings → Integrations → Mapping.
- Tour of the UI → The tabs and Integration → Mapping, and the Probe
- Home Assistant setup → Troubleshoot
See my energy history¶
The Bridge keeps its own history, on by default. The Dashboard has Power History and the energy-flow Sankey; Analytics has day, week, month, year and lifetime views, from the Bridge's own record or the FranklinWH cloud, with Explain for trends and CSV or JSON export. With MQTT on, Home Assistant keeps its own history of the same sensors.
- History, costs and tariffs: what is stored and for how long, Analytics
Get health checks and reminders¶
Every morning the Bridge checks itself and rates the day green, amber or red, with the reason. Your phone is told only when it is amber or red. Every Monday it reports on each battery: state of health, round-trip efficiency and cycles. While the site is off-grid it can remind you at an interval you choose.
Control and automate¶
Schedule battery dispatch¶
Leave the aGate in Self-Consumption or Emergency Backup, and let the Scheduler force charge or discharge at the times you choose, with a power and a target SoC. Start from a template such as Off-peak charge (overnight). Force needs the Modbus client (this bridge) switched on.
Charge my car only when solar is in a range¶
Expose your EV charger's on/off switch to the Bridge, then build two small Home Assistant–only schedules that check the solar power every few minutes in your chosen hours: one turns the charger on when solar is inside your range, the other turns it off when it leaves. A third turns it off at the end of the period.
- Scheduler examples → EV charger on solar (the full recipe, field by field)
Build complex rules and work with Home Assistant¶
A schedule combines a trigger (recurring windows, daily, weekly, every N minutes, cron or calendar), conditions on any sensor or Home Assistant entity (with ALL/ANY groups and a hold time), exit conditions that end it early, priorities for clashes, and actions on the battery and in Home Assistant (service calls and notifications). Explain shows why a schedule did or did not run.
- Scheduler: triggers, conditions, actions, exit and release, priorities
- Use case: integrating with the Scheduler
Be told¶
Get notified about events on my aGate¶
Link Home Assistant, install the Home Assistant Companion app on your phone, and add the phone as a notification device. Then choose the triggers: aGate offline or back, off-grid started or ended, a battery dispatch the Bridge did not start (VPP), and SoC thresholds. Some notifications have buttons you can answer from the phone.
Get automated notifications¶
Add a notify action to any schedule, sent when it starts, when it ends, or both, with live values in the message (for example the battery SoC). Combine it with conditions for alerts such as "battery below 20 % in the evening". The daily health report also notifies you on its own when something is wrong.
Make it mine¶
Customise the UI: show, hide or move things¶
Open the cog in the top bar and choose Customise. It has three tabs, for the top bar, the navigation bar and the Dashboard cards: tick to show or hide each one, and drag to move it. Reset puts a tab back to its defaults. The cog also has the theme and accent colour, and System view has its own Customise diagram.
Share and connect¶
Let other people view but not control¶
Turn on Security and add an account with the viewer role. A viewer sees everything and can change nothing: no battery, mode, schedule or setting writes. Home Assistant users in the read-only group get the viewer role in the sidebar panel automatically.
Connect other apps without learning the battery quirks¶
Call the Bridge's REST API instead of the aGate. The Bridge picks the path that works for each capability (local, Modbus or cloud), says when one is unavailable rather than failing silently, and keeps its own watchdog and release on a battery force. Give each app an api account and its own token.
- REST API and OpenAPI, including Write safety: read it before you automate a write
- Security → API access: tokens
Money¶
Track my energy costs and estimated bill¶
Under Billing & Utilities, follow the setup steps: site, meter, plan and tariffs (you can import tariffs from FranklinWH). The Summary then shows this period's cost so far and the projection to the end of the period. Closed periods are kept as bills you can open and export. Analytics' Explain suggests what to change to lower the bill.