Sensor types
Introduction
Similar to assets, sensors contain 2 sub tabs - Sensors and Sensor Types. Sensor and Sensor Types tab contains a list of Sensors and Sensor Types respectively.
In order to create a Sensor, we first need to a Sensor Type created.
Every sensor is created from a sensor type. For example, there could be many `temperature-sensors` labeled `tmpr-1, tmpr-2, ...` in a project, but all of those might be coming from the sensor type called `tmpr`. This is done to allow comparison among similar sensors belonging to the same sensor type.
Creating a Sensor Type
To create a Sensor Type, we need to be in the Sensor Types tab.
At the top right corner of Sensor types list, there is an add sensor type button.
Clicking on Add Sensor Type button will open up a modal. The modal contains 3 sub sections - Details, Metadata (Fixed Data) and Parameters (Streaming Data).
In the first section named Details, we have to enter the name of the Sensor Type and it's description (optional).
Clicking on next will take us to the next section named Metadata (Fixed Data) where we can add Metadata Name, Data Type and Unit. We can create multiple Metadata using the Add New button.
In the last section named Parameters (Streaming Data), we can add Parameter Name, Data Type and Unit. Multiple parameters can be added by using the Add New button.
After entering the details, clicking on save button will create a Sensor Type.
If we have an existing Sensor Type with the required metadata, we can perform duplication of the sensor type by clicking on the duplicate icon in the actions column. By entering the name of the new Sensor Type, it will create the sensor type with the same properties of the sensor type which it was duplicated from.
Editing a Sensor type
Clicking on edit sensor type button will open up a modal. The modal contains 3 sub sections - Details, Parameters(Streaming data) and Metadata(Fixed data).
In the first section named Details, we can edit the name of the sensor type and it's description (optional).
If we require to add, edit or delete the Metadata (Fixed Data), we can do that in the list of Metdata of the selected Sensor type shown above.
If we require to add, edit or delete parameters (Streaming Data), we that do that in the list of parameters of the selected Sensor type as shown below.
After entering the details and clicking on save button, modification of the sensor type will be saved.
Deleting a Sensor type
Clicking on delete sensor typebutton will open up a confirmation modal.
If we click on yes, the specific sensor type will be deleted.
Viewing a Sensor type
Clicking on view sensor type button will open up a view modal.
View modal contains information of the sensor type such as Sensor type name, description, parameter, and metadata.
Duplicating a Sensor type
Clicking on duplicate sensor type button will open up a modal.
Entering the name of the new Sensor type will create a sensor type with the same properties of the sensor type which it was duplicated from.