feat: ping drivers and push groups from the devices modal

POST /devices/ping broadcasts an ESP-NOW PING_REQ, collects the drivers'
PING_RSP for timeout_s and registers or renames the ones that answer. A
reply also counts as the driver being heard, so group updates go to it
again. POST /devices/groups sends every ESP-NOW driver its groups and
reports the acks. The devices modal gets the Ping drivers and Update
groups buttons from main, with per-driver ping dots.

UI files are now served with Cache-Control: no-cache and the firmware
build hash as ETag, so a browser picks up a new UI right after an update
instead of a day later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-11-03 17:53:56 +13:00
1 parent e7f238aebc
commit 19fea0b0a1
10 files changed
+559 -29

No files matched your search

+6 -1
View File
@@ -654,7 +654,7 @@ body.preset-ui-run .edit-mode-only {
color: #f44336;
}
/* Devices modal: live TCP presence (Wi-Fi only) */
/* Devices modal: Wi-Fi TCP presence, ESP-NOW ping results */
.device-status-dot {
width: 10px;
height: 10px;
@@ -677,6 +677,11 @@ body.preset-ui-run .edit-mode-only {
border: 1px solid #757575;
}
.device-status-dot--pinging {
background: #ffb300;
box-shadow: 0 0 6px rgba(255, 179, 0, 0.45);
}
.btn-group {
display: flex;
gap: 0.5rem;