Files
lights c5d33fdae8 fix group wake/shutdown for devices in multiple groups (#1771)
* only bulk-mark devices offline on client disconnect when lazy ping is enabled

the OnRealtimeConnectRequest hook re-stamped every shutdown-capable
device as offline whenever the last realtime client disconnected, even
with lazy ping disabled where the ping cron keeps statuses fresh. this
overwrote the records' updated autodate, which the UI surfaces as the
'offline since' time, so a dashboard close looked like every device had
just powered off. the saves were also silent, so the unified /logs page
gave no hint.

- skip the offline transition entirely when lazy ping is disabled
- leave already-offline devices untouched so their offline-since
  timestamp keeps its real meaning
- log an info event when the sweep actually marks devices offline

Fixes #1768

* fix group wake/shutdown for devices in multiple groups

the group handlers filter with groups.id = {:grpId}, which on a
multi-relation field requires every group to match. devices in more
than one group therefore never matched and were skipped by the group
wake and shutdown buttons. use ?= to match on any group.

Fixes #1770
2026-09-17 22:21:38 +02:00
..