Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read and how they find the site, so we can improve it (Google Analytics).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Gateway status

  • Widget
  • v1.0.0
  • Sep 1, 2026
  • MIT license
  • v4.2+ | Built-in

Indicator of Gateway connection status.

Widget Type
  • Latest
Category
  • Cards & Info
Use Cases
  • Industrial Automation

Who it’s for

Anyone with a ThingsBoard IoT Gateway in service who needs one clear answer at the top of a dashboard: is this gateway connected right now? Everything else on a gateway page is meaningless if the answer is no, so it belongs where it is read first.

What it does

The Gateway status widget indicates whether a gateway is currently connected to the platform. Pointed at a gateway device, it renders that device’s connection state as a status panel, which is the single fact that decides whether anything else on the dashboard can be trusted.

  • One unambiguous answer, rather than a state inferred from whether telemetry looks recent.
  • The status follows the gateway device the widget is pointed at, so a per-site dashboard reports its own gateway.
  • A wide, shallow footprint suited to sitting across the top of a gateway dashboard.
  • The state updates as the gateway’s connection changes, so a disconnection is visible without a reload.
  • The Gateway status widget reports connectivity: a connected gateway with a broken connector still shows as connected, and that distinction is what the connector and statistics widgets are for.

How to set up

Data keys

The Gateway status widget takes its state from the gateway device it is pointed at rather than from a configured key list.

KeyRoleTypeDescription
Gateway connection stateThe indicator’s stateAttributePoint the datasource at the gateway device; the widget reads that device’s connection status.

Point the datasource at the gateway device itself, not at a device behind it. A connected device behind a gateway says nothing about the gateway’s own link to the platform.

How to customize

  • To report a different gateway — point the datasource at that gateway device.
  • To place it as a header — keep the wide, shallow default proportions and put the widget at the top of the dashboard.

Tips

  • Put this widget above everything else on a gateway dashboard. Every chart and table below it is read as current, and a disconnected gateway makes all of them a picture of the past — which nobody notices unless the status is the first thing on the page.
  • Pair it with the gateway’s statistics charts rather than treating it as the whole health check. Connectivity is binary and a gateway can be connected while forwarding nothing, which shows up in the throughput long before the connection drops.

Share Your Widget with the Community

Built a custom widget? Export it as a JSON from ThingsBoard and publish it to the IoT Hub through a simple 4-step wizard (Upload, Listing, Readme, Review & Submit). Share it with thousands of ThingsBoard developers worldwide and get featured in the catalog.