How online/offline status works

Updated

A device is online when we've heard from it within its expected reporting window. Once that window passes it's marked offline and a device/offline event is emitted.

How long is the window?

It depends on how the device reports, because a device that reports every 5 minutes shouldn't be judged by the same clock as one reporting every 10 seconds.

How the device connects Window
Through a gateway (RS485, Modbus, I²C, GPIO, …) 90 seconds. The gateway sends a presence heartbeat every ~10 s regardless of how rarely the device publishes, so a 5-minute publish interval is perfectly safe.
Polled by us (HTTP, SNMP, direct Modbus-TCP) 3 × your configured poll interval.
Edge / fog devices 15 minutes, matching the fog node's heartbeat.
Direct MQTT / webhook 90 seconds by default — we can't see the interval of a device that pushes to us. Set a reporting grace period on the device if it reports less often.

Every window is at least 90 seconds and at most 1 hour.

If your device reports on a slow schedule and keeps flipping between online and offline, setting its reporting grace period to roughly three times its real interval is the fix.

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:

A gateway reports in every 60 seconds. If we miss three of those in a row it's shown offline even when we never received a disconnect notice — that covers a gateway that loses power or drops off the network abruptly, which previously could keep showing green indefinitely.

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.