TABLE DES MATIÈRES



Introduction and Overview : grouping sensor data by label "Sensor by Label"


It is possible to group data from different sensors on single or multiple sites based on their label, a process known as "Sensor by Label."

For a single site, only sensors on the site with the relevant label will be considered.


Note : Only one label can be used per operation. SENSOR_LABEL does not take into account the time interval, fluid, or unit of the sensors. If time intervals differ, some aggregations in the widgets may not return data.

Additionally, only real sensors will be considered in the calculations of this algorithm. Virtual sensors will not be included.



Configuration of Sensors


A label can be added to a sensor through the asset file: Sensor Sheet, column AE



or via your site schematic:


Available Indicators


Five formulas can be used by users in their widgets:

  • SUM_SENSOR_LABELS(label) : Sums the values of all labeled sensors over the aggregation period.
  • MIN_SENSOR_LABELS(label) : Returns the lowest value among all sensors for the given period.
  • MAX_SENSOR_LABELS(label) : Returns the highest value among all sensors for the given period.
  • AVERAGE_SENSOR_LABELS(label) : Returns the average value among all sensors for the given period.
  • COUNT_SENSOR_LABELS(label) : Counts the number of sensors with this label returning data over the period.




The formula should turn orange. If not, it indicates an error is present.



Data Aggregation Methodology: Aggregation


Example for 3 sensors with the same label:

  • Sensor 1: Daily time interval (1 data point/day), sum aggregation
  • Sensor 2: Daily time interval (1 data point/day), average aggregation
  • Sensor 3: Weekly time interval (1 data point/week), sum aggregation


SensorRecorded Data Week 1Weekly Aggregation
Sensor 17, 8, 7, 9, 7, 7, 550 (sum of all values)
Sensor 26, 5, 8, 7, 7, 7, 97 (average of all values)
Sensor 355 (sum of all values)



Data Retrieval via SENSOR_LABEL in a Widget, Period "Week 1"


SUM_SENSOR_LABELSAVERAGE_SENSOR_LABELSMIN_SENSOR_LABELSMAX_SENSOR_LABELSCOUNT_SENSOR_LABELS
Aggregation(50 + 7 + 5) = 62(50 + 7 + 5)/3 = 20.75503



The sensor aggregation is first performed (sum or average of its values), followed by the aggregation defined by the formula.



Aggregation Delay


When a user assigns a label to their sensor, it is necessary to wait until the next day (J+1) before the formulas mentioned above return data.

Unlike direct sensor calls (usable only on a single site, "@" then "Remote Data"), these algorithms aggregate data only once per day, each night.


Example: If a user creates a sensor on 08/29, assigns it the label "monthly_consumption," and uses the formula "SUM_SENSOR_LABELS(monthly_consumption)" in their shared analyses, it will only start returning data from 08/30.


You can find all available formulas on the platform here.