Datapoint templates added to a Device Model are inherited by any device products associated with that model. Consequently, when a device instance is created based on both the Device Model and Device Product, it will include datapoints from both. Users have the flexibility to mark a datapoint as Not Applicable, ensuring it is not included in the device instance. This feature provides flexibility in customising the applicability of datapoints for a device product.
You can find the datapoints of the Device Product under the Product Datapoints tab and those of the Device Model under the Model Customisation tab.
For example, consider two device products used for smart home monitoring: the Shelly H&T and the TBHH100. Both products are linked to the same device model "IAQ Sensors." The Shelly H&T includes two datapoints: Temperature and Humidity. In contrast, the CD10 MerryIoT has five datapoints: Temperature, Humidity, CO2, RSSI, and SNR.
Next, two scheduled KPI datapoints -Temperature Average and CO2 Average - are added to the device model IAQ Sensors
Now, for a device instance created based on the Shelly product and IAQ Sensors model Three datapoints: Temperature, Humidity, Average Temperature are required. While, for a device instance based on the CD10 MerryIoT product and IAQ Sensors model will include seven datapoints: Temperature, Humidity, CO2, RSSI, SNR, Average Temperature, and Average CO2.
Since, the Average CO2 datapoint is irrelevant for the Shelly H&T, which does not measure CO2 levels, it can be marked as not applicable and the Temperature Average can be marked as applicable for Shelly H&T. This ensures that the Average CO2 datapoint is excluded from devices created based on the IAQ sensor model and the Shelly H&T product.
To mark a datapoint applicable/not applicable for a device product,
Access the Developer application.
Select Device in the left pane.
Click on the model for which the products are associated. This will open the device models information page. For this illustration, the device model: IAQ Sensors in considered. Select Datapoints in the left pane. Click on Model Overview in the Display Datapoint Template for field.
Select the required product from the drop-down list. For this illustration, Shelly H&T is selected. Toggle to Model Customisation. Hover over the datapoint you want to mark as not applicable and click on the ellipsis(...) icon that appears.For this illustration, Temperature Average is selected. Select Mark as Applicable from the context menu.
The status of the datapoint template will now change to Active.
Note: Follow the same steps and choose Mark as Not Applicable in the context menu to make a datapoint unavailable for a device instance based on the device product and device model combination.
See Also