Skip to content

Health reports

Every morning at 07:00 site time the bridge checks itself and gives one answer: is it running well, and is anything getting worse? The answer is green, amber or red, with the reason on the first line. Nothing in the check talks to the aGate or changes the battery; it reads what the bridge already keeps.

Open it in Health → Daily report. Run now makes one at once (it is kept, but not sent); Earlier reports opens past ones. Untick 07:00 each day to stop it.

What it looks at

Over the last 24 hours, against the 7 days before:

Part What it counts
Workers The bridge's background jobs: any crashed or not beating, and restarts.
Polls Per gateway: polls that worked or failed, and reconnects.
Alerts Alerts raised, by kind, and conditions still active now.
Log Warnings and errors grouped by message, with numbers and addresses taken out, so the same failure every few minutes is one line with a count. A pattern is flagged when it is new, growing (more than twice its usual daily count) or all day (in 20 or more of the 24 hours). Passwords and tokens are never copied in.
Housekeeping Database size, log rows, last backup.

The colour

  • Red: a worker crashed or stopped beating, or a critical condition is still active (for example the aGate unreachable now). A condition that cleared but nobody acknowledged doesn't count.
  • Amber: a warning condition still active; any error in the log; a warning pattern seen 10 or more times that is new, growing or all day; or a gateway with 5 % or more of its polls failed (of at least 100).
  • Green: none of those.

Unusual changes

The daily report also compares yesterday with the median of the 28 days before (once there are at least 7), from the daily snapshot, and lists what stands out under Unusual yesterday:

  • State of health down 1 point or more, or efficiency (over the 7 days to yesterday) down 5 points or more. These two turn the report amber, so they reach the phones.
  • Daily energy (battery charged and discharged, solar, grid import and export) twice the usual or more, or half or less, and at least 2 kWh away.
  • Counts (alerts per gateway; the bridge's warnings, errors and alerts) twice the usual or more, and well above it.

The energy and count flags are listed only; they never change the colour.

Where it goes

  • Home Assistant: one notification, which the next report replaces.
  • Phones: only when the report is amber or red, through the trigger Daily health report amber or red (notifications).

Both follow the Push notifications switch. If the bridge was off at 07:00, the report runs on its first minute back.

Weekly battery report

Every Monday at 07:00 the bridge also reports on each gateway's battery for the week Monday to Sunday just ended, on Health → Weekly battery report and as one Home Assistant notification (which the next replaces). It is information only, so it doesn't go to the phones. Untick Mondays 07:00 to stop it; Run now makes last week's at once.

Figure How it is worked out
State of health The aPowers' SoH, read with the cell readings the bridge already makes every 5 minutes for alarms (no extra reads), averaged per day. Its trend a month appears after 4 weeks.
Round-trip efficiency Battery energy out ÷ in over the longest run of days that starts and ends at a similar SoC (within 5 points), so the charge left in the battery hardly counts.
Full cycles The week's discharge ÷ Battery capacity (Settings → Automation); without it, the report says to set it.
Cycles by depth Charge cycles counted from the SoC readings (rainflow), with their average depth.
Load forecast How far off the home-load forecast (Home Assistant's Load Forecast) was over the last 90 days, as the average error in a day's total, beside "same as the day before" for comparison. Each day is predicted only from the days before it. It needs four weeks of history. See HEMS → Load forecast.
Energy The week's battery in and out, solar, home, and grid in and out, from the aGate's daily totals.

If the bridge was off at 07:00 on Monday, the report runs on its first minute back that week.

Battery warranty and wear

Settings → Gateways → Battery warranty & wear, per gateway (#713): what each kWh the battery discharges costs in wear, how much of the warranted throughput is used and left, the pace that lasts the warranty, state of health and round-trip efficiency. Every field and formula is in HEMS → Battery warranty and wear.

The daily snapshot

Just after midnight the bridge also keeps one row per gateway for the day before: the aGate's daily totals (battery charged and discharged, solar, grid import and export, home load), the last SoC, the aPowers' average state of health and the day's alerts, plus a row for the bridge with its alerts, warnings and errors. These rows are kept for good (about 100 bytes a day per gateway), so later reports can show trends longer than the bridge's other history keeps.