How online/offline status works

A device is online when we've received a message from it within the last 90 seconds. After that it's marked offline and a device/offline event is emitted.

What the status dot colours mean

Device dot

A device's dot reflects its live presence and read health, in this order of priority:

Amber vs. red is the important distinction. Amber means "the gateway is talking to us, but this one device won't answer"; red/grey means "we've got nothing." A flaky sensor on a healthy gateway shows amber โ€” far more useful than a plain "offline". Amber is not a replacement for offline; it's a finer state that splits the old "offline" into device-not-answering (amber) and nothing-there (red/grey).

When a whole gateway goes offline, its devices switch from amber to red/grey โ€” once the gateway is gone we can no longer say it's "trying", so the devices are simply offline. They return to amber if the gateway reconnects and the same read keeps failing.

Priority: offline (red/grey) and unreachable (amber) both take precedence over the yellow threshold warning โ€” a device that isn't reading can't be "in alert".

(One cosmetic note: "offline" renders red on the Devices list but grey on the gateway detail page and in the mobile app โ€” same state, different shade.)

Gateway dot

A gateway's dot reflects only its own connection โ€” an unreachable child device never turns the gateway amber:

If the gateway is online but one of its devices is unreachable, the gateway stays green and the problem is surfaced at the device level instead: the device-count on the gateway card turns amber, the gateway detail page shows a "N device(s) unreachable" badge, and that device shows its own amber dot. This keeps "the gateway is down" and "a device under it is misbehaving" clearly separate โ€” you always know which one to go fix.

Notes:

If a device is unexpectedly offline, see device shows offline.