0.5.45 — 2026-11-15¶
Everything merged since 0.5.44, by area:
- Billing & Utilities: a page of its own (Summary, Bill detail, History, Plans & meters) that replaces Energy Costs; setup steps, bills worked out by hems with a formula on each line, closed periods' bills kept with OUTUS export and Recalculate.
- Battery: a slow BMS read waits 60 s and says so; Recording has its own tab; recorded sessions fold away; drop-downs on a phone.
- Alerts: the open-alerts list is lines, not columns, with a short time.
- Setup: Settings → Setup is the one setup list, and every task opens where it is set up.
- Gateways: search takes a port, list or range (Emulator labelled); a disabled or deleted gateway's entities leave Home Assistant; a refused poll counts as unreachable.
- Prices and dates: the price Filter searches all of Home Assistant; date boxes line up on a phone.
- REST:
/api/gridservice_ampsis the service amps; the air-switch rating isair_switch_amps. - Changelog: this file is an index; full notes per version are on the docs site.
Added¶
- History lists each closed period's bill, worked out by hems (#613, phase 3). When a billing period ends, hems works out its final bill (an OUTUS bill) from the plan in force and that period's readings, and the bridge keeps it. History lists the bills newest first; each opens to its lines and formulas, with Export bill (
outus/bill) and Export usage (outus/usage, the period's 5-minute intervals). Recalculate works a bill out again with today's plan, for example after a tariff correction; the new bill supersedes the old one, which stays (shown with Show superseded). The running tracker's periods and Modbus imports stay below as Recorded periods. API:/api/billing/bills,/api/billing/bills/<id>,…/recalculate,/api/billing/usage. hems pinned at 0.1.2 (rates in formulas read$0.30). - Bill detail is worked out by hems from the meter's 5-minute ledger (#613, phase 2). The open period's lines are grouped by tariff and then plan charges, each with its formula (
0.987 kWh × $0.25,14.21 days × $1.10), with tax and the net so far. Now shows each tariff's rate and band now. The Summary's net, projection, day n of N and tiles (one per tariff, plus plan charges) come from the same bill. The ledger is built from the meter's gateways' grid readings (summed, #611), kept per meter and fed only new readings. With no site timezone, the page says time-of-use windows are in UTC. API:/api/billing/bill. hems pinned at 0.1.1 (ledger.open_interval, readable fixed-charge labels). - Billing & Utilities page (owner, #613, #629; it replaces Energy Costs, Billing in the menu). Sub-tabs in the order OUTUS presents a bill: Summary, Bill detail, History and Plans & meters, with Meter to pick one when there are several. The Summary lists the setup steps first while one is missing (Site → Meter → Plan → Tariffs), each ticked when done with Set up opening the editor that does it, then this period, its projection and last period's total. Bill detail lists the open period's lines and what drives them now (demand peak so far, free export left, energy with no rate). The steps come from hems 0.1.0, the OUTUS engine (new dependency).
- A tariff exports as an OUTUS plan:
/api/tariffs/<id>/export?format=outus.
Changed¶
- Battery: Recording has its own tab, and Charts suits a phone (owner). Tabs are BMS Telemetry, Recording (start one now, and the scheduled ones) and Charts. In Charts the recorded sessions fold away so the chart takes the width (on a phone they fold once you pick one), and on a phone what to chart is a drop-down.
- The changelog is a short index, with full notes per version (owner).
CHANGELOG.mdkeeps[Unreleased]and one entry per release (counts and highlights); each version's full notes, word for word, aredocs/changelog/<version>.mdand a Changelog section on the docs site. A release writes both withtools/changelog_index.py release; the layout is indocs/TEST_POLICY.md. - Sites, meters, retailers and tariffs moved to Billing & Utilities → Plans & meters (#613), with the same editors. Settings' Sites & Billing is now Location & Prices (Location & Solar and Prices). Explain, the scheduler's setup messages and the setup list's "Electricity utility, pricing & billing" point to the new place.
- Search finds gateways on any port (owner, #416). Discover in Settings → Gateways and the setup wizard swept TCP 9000 only, and matched "already added" by IP alone, so several gateways on one address were mislabelled. It still searches 9000 by default, where every real aGate listens, and now takes a port, list or range (
9020,9000,9020,9020-9030) to find emulators. Results are one per address and port, "already added" is matched on both, and Add keeps the port. A result or gateway on a port other than 9000, or with a serial startingMOCK, is labelled Emulator. Hosts × ports is capped at 1024 probes, and the Modbus TCP Server (aGate :502) is never probed.
Fixed¶
-
Battery: "Fetch is aborted — showing the last good reading" with no reading (owner). The browser gave up on a BMS read after 20 s (the read is a login and five commands, and a busy aGate took longer), Safari called it "Fetch is aborted", and the banner claimed a reading it didn't have. It now waits 60 s, says "The aGate didn't answer within 60 s", says "no reading yet" when there is none, and has Try again.
-
Open alerts squeezed the message to one word a line on a phone (owner). A long timestamp sat in a fixed column. Each alert is now lines: severity, a short time (
15 Nov 2:30–3:32 PM) and its state (resolved, ongoing, or how many times it fired) with Acknowledge; then the title; then the message. - A credit showed as "$-0.01" on Billing & Utilities; it reads −$0.01.
- The billing period's progress bar was empty (Energy Costs, now Billing & Utilities): its colour was lost to a string style binding.
- The price entity Filter found nothing (owner). Typing "Amber" in a buy or feed-in price picker searched only the entities exposed to the bridge. It now also searches all of Home Assistant's sensors, and says "No sensor matches" when nothing does.
- Provider from / until overlapped on a phone (owner). The two date boxes sat at different heights and ran into each other in Safari and the Home Assistant app. They are now the same size, side by side, with "blank = current" under the box. The same applies to a tariff's Effective from / to.
- Tariffs & costs in Settings → Setup did nothing when tapped (owner), and neither did Home Assistant or Notifications. Settings → Setup is now the one setup list. It shows the install steps, then the wizard's Essentials and Advanced tasks (Cloud, MQTT, Home Assistant, utility and billing, default mode, scheduling, notifications, security, accounts and more). Each task shows Done and has Set up or Open, which goes straight to where it is set up or opens that step of the wizard.
-
GET /api/gridreturned the air-switch rating asgrid_connection.service_amps(#425). It heldairSwitchCur, the aGate air-switch rating, while the service/main amperage (electricSupply) was only inelectric_supply_raw.service_ampsis now the service/main amperage, and the air-switch rating is the newair_switch_amps. A REST caller readingservice_ampsgets a different value (the service amps, e.g. 63 A, instead of the air switch, e.g. 100 A).electric_supply_rawis unchanged, and the Grid tab shows the same values as before. -
Disabling or removing a gateway left its entities in Home Assistant (#405). Its discovery configs are retained on the broker, and only the MQTT tab's Unpublish removed them, so the entities and device stayed for good although Settings → Gateways said disabling unpublishes them. Disable and Remove now remove the gateway's retained topics once its poller has stopped, as Unpublish does. A restart still leaves them in place.
-
A gateway that refused every command looked healthy, with blank readings (#426). When the aGate answered the login or the power-flow read with a refusal (
result 1and a reason), the poll still counted as good: the gateway showed OK with every value blank, and nothing was logged. Such a poll now fails like an unreachable one: the last good readings are kept and shown as stale, and the error and log say what was refused, e.g. "aGate refused the power-flow read (1301): result 1, reason 7".