Repository navigation
Mate 4.15.0 — A charge reads like a trip
Mate 4.15.0 — A charge reads like a trip
The Charges calendar redone by @arekm in
#412, and two fixes: one found in the
report of @arzthilfe on #409, one in the
report of @ViriatusOG on #395.
What changes
A charge is a row that opens (#412, @arekm)
The day drawer of the Charges calendar drew a card of some 650 px for each charge. Now:
- each charge is a row, with a thumbnail of its power and SoC curve beside it;
- a click opens it under itself: the energy; a line with the battery's temperature, the outside
temperature and the average power; the chart; the note on one line; the actions; - the editors that were on the card (type, 🆓, ✎, 🧭 🔄 ✏️, the place) stay on the row and work
without opening it; - Expand all / Collapse all beside the day's date;
- several days at once, as in the Trips calendar: shift-click or drag with a mouse; on a phone, hold
a day for half a second, then tap another. The heading gives the totals of the range, and each day
its own.
The chart under a charge reads Home Assistant off the web server's event loop, and when Home
Assistant has just failed to answer, the next charts do not ask it again for a minute.
The charging panel shows the power of a charge under 3 A (#409)
"Charging status" on the Charges page and the charging chip on the Overview computed the power only
from 3 A up. At the 718 V of @arzthilfe's C10, a 1.7 kW home charge carries 2.4 A, so both read
0.00 kW while the chart below drew the power. It was the page's copy of the floor 3.18.3 took out of
the poller (#307). It is gone: zero current still reads zero.
A charge window saved here shows on the Overview at once (#395)
Since 3.10.0 the Overview reads the charge window the poller files under each car, refreshed every
30 minutes. A window saved on the Scheduling page went to a key the Overview reads only when that
one is empty, so after a save the car had confirmed, the Overview kept the old window for up to 30
minutes. The save now files it under the car on screen, as the poller does.
Upgrade impact
- Nothing is migrated or deleted; no table changes.
- The Charges calendar looks different: the same information and the same actions, in rows.
- With two cars, a window saved on the Scheduling page is filed under the car on screen and no
longer touches the other car's. The poller's next read of the car still wins, as before.
Verification
- CI green on the tag: 5,596 passed, 1 skipped, plus 48 passed and 2 skipped on the Windows job;
the check that the released desktop shell still runs this Mate is green. - Locally, in the CI's image with Node.js and a MateDesktop checkout added: 5,596 passed, 1 skipped
(a local-only reference file the clone does not carry). - Eleven new tests for the two fixes. On 4.14.2, 3 of the 6 for #409 fail (a 2.37 A charge reads
0.00 kW, on the panel and on the page) and 2 of the 5 for #395 fail (the Overview keeps the old
window after a save, whether switched off or moved). Now all eleven pass. One existing test now reads
the window the Overview shows instead of the old shared key; what it checks is unchanged. - #412 brings its own tests. Each of its four fixes from the review was put back one at a time, and
each time its tests failed: the range that crosses midnight (4), the gap of a paused charge (1),
the chart read off the event loop (2), the minute without asking Home Assistant (1). - Screenshots on demo data: the Charges calendar on a computer, with several days open and at phone
width; the charging panel and the Overview chip at 1.7 kW, before and after; the Overview after a
save on the Scheduling page, before and after. - The Docker image, built from this release, ran on the test instance (one car) with a real database
before the tag: every page answers as on 4.14.2 (the fuel page sends a car without a tank elsewhere,
as before); each charge of the last five weeks opens in its day as a row with its curve, two merged
charges as one; September as a range lists the same 5 charges, over 4 days; the log has no errors.
That car has not charged since 7 October, nor had its window changed there, so neither fix was seen
at work on it. - Not tried: a real charge under 3 A or a real schedule save on 4.15.0, the add-on behind Home
Assistant, a real phone.
Italiano
Mate 4.15.0 — Una ricarica si legge come un viaggio
Il calendario delle Ricariche rifatto da @arekm nella
#412, e due correzioni: una trovata nella
segnalazione di @arzthilfe sulla #409,
una in quella di @ViriatusOG sulla #395.
Cosa cambia
Una ricarica è una riga che si apre (#412, @arekm)
Il pannello del giorno nel calendario delle Ricariche disegnava una scheda di circa 650 px per ogni
ricarica. Ora:
- ogni ricarica è una riga, con accanto una miniatura della sua curva di potenza e SoC;
- un clic la apre sotto di sé: l'energia; una riga con la temperatura della batteria, quella esterna e
la potenza media; il grafico; la nota su una riga; le azioni; - i comandi che erano sulla scheda (tipo, 🆓, ✎, 🧭 🔄 ✏️, il luogo) restano sulla riga e funzionano
senza aprirla; - Espandi tutto / Comprimi tutto accanto alla data del giorno;
- più giorni insieme, come nel calendario dei Viaggi: Maiusc-clic o trascinamento con il mouse; sul
telefono si tiene premuto un giorno per mezzo secondo e poi si tocca un altro giorno. L'intestazione
dà i totali dell'intervallo, e ogni giorno i suoi.
Il grafico sotto una ricarica legge Home Assistant fuori dal ciclo principale del server web, e quando
Home Assistant non ha appena risposto, i grafici successivi non lo interrogano di nuovo per un minuto.
Il pannello di carica mostra la potenza di una ricarica sotto i 3 A (#409)
«Stato di carica» nella pagina Ricariche e la ricarica in corso nella Panoramica calcolavano la potenza
solo da 3 A in su. Ai 718 V della C10 di @arzthilfe, le sue ricariche di casa da 1,7 kW portano 2,4 A,
quindi entrambi dicevano 0,00 kW mentre il grafico sotto disegnava la potenza. Era la copia nella
pagina della soglia che la 3.18.3 aveva tolto dal poller (#307). Ora non c'è più: corrente zero dà
ancora zero.
Una finestra di ricarica salvata qui si vede subito nella Panoramica (#395)
Dalla 3.10.0 la Panoramica legge la finestra di ricarica che il poller registra per ogni auto,
aggiornata ogni 30 minuti. Una finestra salvata nella pagina Schedulazione finiva in una chiave che
la Panoramica legge solo quando quella dell'auto è vuota, quindi dopo un salvataggio confermato
dall'auto la Panoramica mostrava la finestra vecchia per un massimo di 30 minuti. Ora il salvataggio la
registra per l'auto sullo schermo, come fa il poller.
Impatto dell'aggiornamento
- Niente viene migrato o cancellato; nessuna tabella cambia.
- Il calendario delle Ricariche ha un aspetto diverso: le stesse informazioni e le stesse azioni, in
righe. - Con due auto, una finestra salvata nella pagina Schedulazione viene registrata per l'auto sullo
schermo e non tocca più quella dell'altra. La lettura successiva dell'auto da parte del poller vince
ancora, come prima.
Verifica
- CI verde sul tag: 5.596 passati, 1 saltato, più 48 passati e 2 saltati sul job Windows; il
controllo che il guscio desktop pubblicato faccia ancora girare questa Mate è verde. - In locale, nell'immagine della CI con Node.js e una copia di MateDesktop aggiunti: 5.596 passati,
1 saltato (un file di riferimento solo locale che la copia non porta). - Undici test nuovi per le due correzioni. Sulla 4.14.2 falliscono 3 dei 6 per la #409 (una ricarica
da 2,37 A dà 0,00 kW, nel pannello e nella pagina) e 2 dei 5 per la #395 (la Panoramica tiene la
finestra vecchia dopo un salvataggio, sia spenta sia spostata). Adesso passano tutti e undici. Un test
esistente ora legge la finestra che mostra la Panoramica invece della vecchia chiave condivisa; quello
che controlla non cambia. - La #412 porta i suoi test. Ognuna delle sue quattro correzioni dopo la revisione è stata tolta una
alla volta, e ogni volta i suoi test sono falliti: l'intervallo che attraversa la mezzanotte (4), la
pausa di una ricarica interrotta (1), il grafico letto fuori dal ciclo principale (2), il minuto senza
interrogare Home Assistant (1). - Schermate con dati dimostrativi: il calendario delle Ricariche su un computer, con più giorni aperti
e a larghezza di telefono; il pannello di carica e la ricarica in corso nella Panoramica a 1,7 kW,
prima e dopo; la Panoramica dopo un salvataggio nella pagina Schedulazione, prima e dopo. - L'immagine Docker, costruita da questa versione, ha girato sull'istanza di prova (una sola auto) con
un database vero prima del tag: ogni pagina risponde come sulla 4.14.2 (la pagina del carburante
manda altrove un'auto senza serbatoio, come prima); ogni ricarica delle ultime cinque settimane si apre
nel suo giorno come una riga con la sua curva, due ricariche unite come una sola; settembre come
intervallo elenca le stesse 5 ricariche, su 4 giorni; nel log non ci sono errori. Quell'auto non ricarica
dal 7 ottobre e lì non le è stata cambiata la finestra, quindi nessuna delle due correzioni si è vista
all'opera. - Non provati: una vera ricarica sotto i 3 A o un vero salvataggio della programmazione sulla 4.15.0,
l'add-on dentro Home Assistant, un telefono vero.