LitmusEdge with AWS IoT SiteWise
Review the following guide to set up an integration between Litmus Edge and AWS IoT SiteWise to send data directly to the cloud.
Before completing these steps, make sure to do the following:
- Have access to an AWS account with the appropriate user privileges.
- A Litmus Edge Manger instance with an active configuration ready for deployment of an edge device. See Set Up an Activation Configuration for details.
- Refer to Step 3: Add Template in the Set Up an Activation Configuration section to include the template file below. This JSON file contains the configuration for the AWS IoT SiteWise Edge Integration and should be uploaded to the activation config.
To deploy litmus edge from your AWS IoT SiteWise console:
- Open the AWS IoT SiteWise browser tab and navigate to Data Sources section. See Add a partner data source and SiteWise Edge gateway partner data source option for more details.
Click Add data source. The Add data source panel appears.
- Configure the following parameters to add data source and activate litmus edge.
- Source type: Select Litmus Edge from the drop-down list.
- Source name: Name your Litmus Edge instance.
- Activation configuration: This configuration is optional.
- For this guide, select Activate now using a code.
- Litmus Edge Manager Activation URL: See Step 8: Retrieve Activation Code/URL to generate an activation URL.
- Litmus Edge Manager activation code: See Step 8: Retrieve Activation Code/URL to generate an activation code.
- To activate with Litmus Edge manager later, select Activate later on Litmus Edge.
- Litmus Edge will not be activated with Litmus Edge Manager and will require manual activation, licensing and configuration. See Activate an Edge Device for details.
- Check the Authorize check box.
Click Save.
To monitor the deployment of edge devices:
- Return to the AWS IoT SiteWise Console.
Click the Greengrass core device name under the Edge gateways section. The Overview page for the Core Device appears.
Click Deployments and check the status of the latest deployment. Allow a few minutes for the deployment to refresh.
The Status on this device tab will change to Succeeded. The deployment of the edge device is completed.
Notes: Ensure that the correct template is applied during the configuration, as this will provide the necessary connector setup.
See Step 3: Add Template in Set Up an Activation Configuration for details.
Download the template file below:
After deployment, go back to Litmus Edge Manager and approve the activation request. See Step 4: Approve the Activation Request in Litmus Edge Manager for details.
After setting up your AWS account, you will need to log in to the previously deployed Litmus Edge instance to complete the steps for integrating with AWS IoT SiteWise.
You can access the Litmus Edge UI by directly accessing the AWS SiteWise Edge gateway.
If direct access is not available, they can also remotely connect to the Litmus Edge instance from the Litmus Edge Manager from Open Edge Devices.
Important: To log in to your Litmus Edge instance, you need the IP of the gateway and port 8443. See Access the Litmus Edge Web UI for more details.
Follow the steps to Connect a Device. The device will be used to store tags that will be eventually used to create outbound topics in the connector.
After connecting the device in Litmus Edge, you can Add Tags to the device. Create tags that you want to use to create outbound topics for the connector.
Follow the steps to Add a Connector and select the MQTT - AWS IoT SiteWise Edge provider.
Configure the following parameters.
- Name: Enter Connector Name.
- Client ID: Enter Unique client identity.
- Property Alias: This can be static or use format directives, with the default being /$D/$N (e.g., /<device_name>/<tag_name>). Ensure the Property Alias matches the AWS IoT SiteWise Asset Measurement Alias.
- Integration Topic: AWS recommends that the default integration topic for publishing matches the Property Alias.
- Additional Alias Definition: (Optional) String to further define dynamic Property Alias and Integration Topic.
Click Save or Update.
After adding the connector, click the toggle in the connector tile to enable it.

If you see a Failed status, you can review the Connector Logs and relevant error messages.
You will now need to create topics for the connector. To create outbound topics, you have the option of importing the tag created in Step 5. To create inbound topics, you will have to manually create the topic.
To create outbound topics:
- Click the connector tile. The connector Dashboard appears.
- Click the Topics tab.
Click the Import from DeviceHub tags icon. The DeviceHub Import dialog box appears.
- Select all the tags to import and click Import.
Ensure the topics you imported are enabled by returning to the Topics tab and clicking the Enable all topics icon.

To verify that data is landing in AWS IoT SiteWise, you can check either the Data Streams or the specific Asset where the data is expected to publish.
You will need to log in to your AWS console to verify that outbound messages are being sent.
To verify outbound messages from data streams:
- Log in to your AWS console.
From the side menu, navigate to the Data streams pane.
- Click the Refresh button to refresh the page. The Data streams info table shows a new topic.
- Enable the topic and confirm that data is flowing correctly from Litmus Edge to AWS IoT SiteWise.
- The Data stream alias in AWS SiteWise Console will be the Integration Topic or Remote Data topic defined in the Litmus Edge AWS IoT SiteWise Edge Integration.
The data was successfully sent from Litmus Edge to the broker AWS IoT Sitewise.

If the Property Alias configured in Litmus Edge matches what is set in AWS IoT SiteWise, the data will be visible in the Asset’s measurement section.
To verify outbound messages from asset’s measurement:
- Log in to your AWS console.
- From the side menu, navigate to the Assets pane.
- Click Measurements under the Property Type.
- Confirm that data is flowing correctly from Litmus Edge to AWS IoT SiteWise.
The data was successfully sent from Litmus Edge to the broker AWS IoT Sitewise.
