docs(wiki): session wrap-up — panel verified live, milestones, ops gotchas, next steps trimmed

This commit is contained in:
2026-07-12 10:13:36 +02:00
parent d285a32829
commit 12db2e719d
5 changed files with 26 additions and 14 deletions
+11 -7
View File
@@ -1,6 +1,6 @@
---
type: meta
updated: 2026-07-11
updated: 2026-07-12
tags: [synthesis]
---
@@ -23,14 +23,18 @@ tags: [synthesis]
Hardware surprise: this is a **DC-capable multi-standard charger** (gun 1 EU, gun 2 Chinese GB/T @ 30 kW), not the assumed basic AC unit — see [[anfu-charger]].
## Milestones reached (2026-07-12)
- ✅ Live cutover: `eu092025` connects to `python -m backend.main` (2026-07-11 evening)
- ✅ **The panel works end-to-end on the owner's phone**: login, and a real in-app remote start on gun 1 of the live charger (2026-07-12 morning, tx 1–2, 141 Wh, attributed who=julian / method=app)
- ✅ Six household users created (admin + scoped members)
## What's next
1. ~~Cut the live charger over to the backend~~ — ✅ done 2026-07-11 evening: `eu092025` connects to `python -m backend.main` (verified in events.jsonl). Remaining: a card tap + a panel button-push on the live charger.
2. **Create the real users** — `python -m backend.users add <name> --scopes ...` for each household member (the API stays open until the first user exists).
3. **Extract the Tuya local keys** (`tinytuya wizard` — steps in [[wifi-relays]]) and register them via `PUT /api/relays/<name>` → relays become controllable.
4. **Restart the backend once** to pick up the React panel + pending-card workflow (state changes never need restarts; code updates do).
5. **Test the panel from a phone** — `http://<host>:9000/`; verify login, a real button-push start on a ready gun, the pending-card banner (tap an unenrolled card), and add-to-home-screen over [[netbird|NetBird]].
6. **Resolve the ❓ remote-stop restart question** — did the gun-2 session auto-restart from auth cache after RemoteStop, or was the card re-tapped? Affects the app's Stop button UX ([[authorization]]).
1. **Extract the Tuya local keys** (`tinytuya wizard` — steps in [[wifi-relays]]) and register them via `PUT /api/relays/<name>` → relays become controllable.
2. **Resolve the ❓ remote-stop restart question** — did the gun-2 session auto-restart from auth cache after RemoteStop, or was the card re-tapped? Affects the app's Stop button UX ([[authorization]]). Test: remote-stop, touch nothing for 5 min.
3. **Deploy as an always-on service** ([[architecture-plan]] phase 4) — decide the host (❓ below), run under NSSM/systemd, DHCP reservation.
4. Housekeeping: delete the retired `app-remote` allowlist entry from the Cards page; tap the remaining household cards so they pend and can be linked to their owners.
## Open decisions ❓