Compare Temperature Across Devices in a Report
Visualize and compare temperature readings from multiple devices over the past 24 hours using a Line chart component in a report.
Preparation: Make sure the target devices are sending temperature telemetry to ThingsBoard (e.g. once per hour).
Step 1. Add the chart
Section titled “Step 1. Add the chart”- Navigate to Reporting ⇾ Templates.
- Open an existing report template or create a new one.
- Drag the Line chart component into the content area.
Step 2. Configure the chart
Section titled “Step 2. Configure the chart”- Set the Time window to last day, aggregated by 1 hour.
- Set the Title to
Temperature history. - Configure the Datasource — create a new entity alias:
- Alias name: My devices
- Filter type: Entity list
- Type: Device
- Entity list: add the devices whose temperature you want to compare.
- Add a Series entry:
- Key:
temperature - Label:
${entityName} temperature - Units: °C
- Key:
- Configure the Y axis:
- Label: Temperature
- Min: 15, Max: 35
- Units: °C
- Configure the Legend:
- Position: Bottom
- Enable Min, Max, and Average display.
- Click Save to save the component.
Step 3. Save the report template
Section titled “Step 3. Save the report template”Update the file naming pattern to:
temperature-monitoring-report-%d{yyyy-MM-dd_HH:mm:ss}Then click Save in the top-right corner.
Step 4. Generate a test report
Section titled “Step 4. Generate a test report”Click Generate test report to verify the configuration. The resulting PDF contains a line chart with one series per device, each labelled with the device name, showing its temperature trend over the past 24 hours.