Losant IoT
Overview
The Losant IoT blueprint crawls device recipes and deployed devices from the Losant IoT platform. It represents the field operations layer of the digital thread, connecting deployed physical devices back through Azure IoT Central templates to Aligni BOM parts via the PartNumber tag.
Resources Collected
- Device Recipes: Recipe templates for IoT device provisioning, including ID, name, description, device class, and PartNumber tag (used for cross-system correlation)
- Devices: Deployed field devices including ID, name, description, device class, and DeviceRecipe tag (linking to the recipe used for provisioning)
Prerequisites
- Losant account with an application
- Application ID (found in application settings)
- API Bearer token
Setup Instructions
1. Find Your Application ID
- Log in to Losant
- Open your application
- The Application ID is shown in the URL:
app.losant.com/applications/{applicationId}
2. Generate API Token
- Navigate to Security > Access Keys or use the Losant API to generate a bearer token
- Copy the token (JWT format)
3. Configure Crawler
| Field | Description | Required |
|---|---|---|
losantApplicationId | Losant application ID | Yes |
losantApiToken | API bearer token | Yes |
4. Set Up PartNumber Tags on Device Recipes
For the digital thread to work, each Losant device recipe must have a tag with key PartNumber whose value matches the capabilityModel.description field of the corresponding Azure IoT Central device template.
Data Points
| Data Point | Source | Details |
|---|---|---|
| Device Recipes | Losant REST API | Recipe ID, name, PartNumber tag value |
| Devices | Losant REST API | Device ID, name, DeviceRecipe tag value |
Cross-System Correlation
losant.iot.DeviceRecipe.PartNumberTag(the value of thePartNumbertag on each device recipe) correlates withazureiot.iot.DeviceTemplate.PartNumberto link Losant device recipes to Azure IoT Central templateslosant.iot.Device.DeviceRecipeTag(the value of theDeviceRecipetag on each device) correlates withlosant.iot.DeviceRecipe.Nameto link deployed devices to their recipe- See Azure IoT Central blueprint and AlignI blueprint for the full digital thread setup