Add Device Template
Device templates define the various device configurations that one needs to manage. For each device type one template must be created
- Click menu to select device management.
- Select option in side menu to select manage device templates
- Click on add button to create a new template
- Provide a name to the new template.
- Device make and version can be the values of the intended device type which the template is being prepared for.
- Select what kind of device the template would be applied to
- Generic Sensor – This type are related to devices which would send sensor data to the cloud service
- Switch – This type are related to device which primarily has relay control and need to listen to relay commands. It can also have sensor values to report.
- Navigation Device – This type are related to device which are equipped to send navigation coordinates periodically because of changing location of the device.It can also have sensor values to report.
- Data publish frequency in seconds indicates how often data is reported to the cloud, allowing for timely communication between devices and the cloud platform.
- Device connection can be MQTT/(s) or HTTP . Currently only MQTT/(s) is supported.
- Device Fields are the different fields the device would report to the cloud. One can add multiple fields.
- Access Key – This is the json path for the field to be identified from the payload. Example if payload is { “temp_1” : 21} , “temp_1” is the access key . It also supports complex json payload that can be sent to the cloud. Example if payload is { “data” :{ “temp_1” : 21}} , “data.temp_1” is the access key. It will support JSON path to get the access key.
- Name – This is the name that the attribute of the device would be recognized with in the system. Basically the name of the type of value access key represents. e.g Temperature, Humidity ,etc
- Unit – The unit of the attribute
- Maximum /Minimum/ Upper Threshold/ Lower Threshold – The boundary values of the specified attribute.Applicable only for numeric fields
- Field Usage – How the attribute is used in the system
- Reported from device – This field is sent from device to the cloud. e.g sensor values, navigation coordinates
- Command parameter to device – This field is sent as a command from cloud to device. Device must listen to the attribute to perform any action. ex. reporting interval, device control attribute
- Reported and Command parameter – This field is sent as well as received in cloud.Device must listen to the attribute to perform any action also report this to the cloud . e,g relay switching on/off
- Data Type – The intended type of value data type like string , numeric, boolean. All sensor , switches are in normal values in numeric.
- Once all the device fields are added one can save the template pressing the submit button