How to Create a Mobile Dashboard for Devices in ThingsBoard CE

In our earlier post, How to Run the ThingsBoard Mobile App on Android (Self-Hosted Server), we walked through connecting the ThingsBoard Mobile App to your own server.

Now, let’s build a responsive mobile dashboard for devices using the temp-humidity profile. This dashboard will automatically display in the ThingsBoard Mobile App when users tap a device.


Prerequisites

You’ll need:

  • ThingsBoard Community Edition (CE)
  • A device profile named temp-humidity
  • Devices publishing telemetry: temperature, humidity
  • Tenant administrator access
  • ThingsBoard Mobile App

  1. Create the Dashboard
  • Go to Dashboards
  • Click “+” → Create new dashboard
  • Name it: temp-humidity
  • Click Add, then open the dashboard

  1. Add Entity Alias
  • Click Aliases (top toolbar)
  • Click “Add alias”
  • Set:
FieldValue
Alias nameSelected Device
Filter typeEntity from dashboard state
Entity typeDevice
  • Click Save.

This allows the dashboard to display telemetry for the device selected in the mobile app.


  1. Add Widgets

Temperature Value Card

  • Click Add widgetCards → Value Card
  • Datasource
FieldValue
Entity aliasSelected Device
Data keytemperature (Time series)
  • Appearance
FieldValue
LabelTemperature
Value°C
Decimals0
IconThermometer

Humidity Value Card

  • Datasource
FieldValue
Entity aliasSelected Device
Data keyhumidity (Time series)

Appearance

FieldValue
LabelHumidity
Value%
Decimals0
Iconwater-percent

  1. Assign the Dashboard to a Device Profile
  • Go to Device profiles
  • Click on the temp-humidity profile
  • Go to the Details tab
  • Under Mobile dashboard, choose temp-humidity
  • Save

  1. User Access Requirements

The mobile dashboard will only work if the user has:

RequirementDescription
Device AccessThe device must be assigned to the user (directly or via customer)
Dashboard AccessThe dashboard must be assigned to the user or their customer

  1. Test in the Mobile App
  • Log in with the correct user
  • Tap a temp-humidity device
  • Verify the dashboard shows:
    • Real-time temperature and humidity
    • Proper mobile layout

Done! You now have a mobile dashboard for IoT devices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top