TABLE OF CONTENTS


1-Siemens Connect Box -Milesight LoRaWAN sensor Integration


Preface

The  Connect Box, a product under Siemens, is an IoT building management solution designed specifically for small and medium-sized buildings. It simplifies device connectivity and data management. The device supports multiple communication protocols including LoRaWAN, BACnet IP, Modbus RTU/TCP, M-Bus, and KNX, enabling seamless integration with various Building Automation Systems (BAS) and existing equipment. Users can easily configure devices through the Connect Box web console and quickly deploy smart building applications using the embedded API.


The Connect Box features a simple installation process—typically completed within a day—and supports remote configuration and real-time data access, which helps enhance operational efficiency and energy management. Additionally, it is equipped with 4G communication and local data storage to ensure data reliability and security. For facility managers aiming to achieve digital transformation in their buildings, the Connect Box offers an efficient, flexible, and cost-effective solution.


This document introduces how to integrate Milesight sensors with the Connect Box gateway device, and how to observe the real-time data reported by the devices within the Connect Box platform.


In this demonstration, we use the Milesight AM307 sensor as an example. You may use your own Milesight device depending on your actual use case.



1.Prerequisites

  • Gateway Model: Connect Box CWG.BOX-XX (with a Connect Box cloud account)

  • Sensor Model: AM307

2.Preparation

Prepare the Connect Box and make sure the 24V power supply is properly connected and that the antennas are securely attached, as pictures below.


3.Log in to the Connect Box Platform

Once the Connect Box is connected to the internet, it will automatically connect to the Connect Box cloud platform. Next, go to https://connectbox.siemens.com/ and search for the device using the recorded device ID. You should see your device as shown in the image below:


Tip: You can also use the "Map" function to help locate your device.

4.Create LoRaWAN Network Configuration

Navigate to: Configuration → Networks, then click “Add network” to create a new network configuration.


Make sure to select the correct frequency for your region.

Click Save when done.

5.Add Milesight LoRaWAN Device

Navigate to: Configuration → Equipment, and click Add equipment as shown:



In the popup, select Pick a decoded equipment:



Then, in the Manufacturer and product reference field, enter AM307.

The platform will automatically match the model:



Next, fill in the LoRa parameters of your AM307 sensor based on your actual device:

Below is the parameter mapping for reference. You should enter your own device’s parameters:


The default application key is 5572404c696e6b4c6f52613230313823 (before Q4 2025) or $EUI$EUI  (for example: 24e124707e04392324e124707e043923)


Tip: You can find Milesight device parameters in the settings via Milesight Toolbox.


Click the Next button in the bottom-right corner to proceed.

On the next screen, configure and add the Properties parameters, then click Save, as shown below:



At this point, the AM307 has been successfully added. After a short wait, the device will automatically join the network, and the platform will display its status as shown:



Next, you need to push all the configuration parameters from the cloud to your physical device by clicking Save changes → Send to the box in the bottom right corner.


The device should be marked as paired (if not, you may need to refresh the screen).

6.Check Data Status

Follow the operation shown in the image:



Here, you can see that the cloud platform is now receiving real-time data reported by AM307. This concludes the integration process.



2.Siemens Building X - Milesight LoRaWAN sensor Integration


Preface

Siemens Building X™ is a platform that runs the applications that help you manage building operation. It provides a central foundation for secure, real-time data that supports a wide range of use cases. As a part of the Siemens Xcelerator portfolio, Building X aims to provide a unified platform for building operations by integrating data from various systems.

Milesight provides a broad portfolio of sensors and edge devices for smart buildings. Milesight hardware can be easily integrated with the Siemens Building X platform, enabling fast deployment of data-driven use cases.

This document describes the integration in detail and walks you through the required steps to connect Milesight LoRaWAN sensors to Siemens Building X cloud platform.

Topology (simple):   Milesight LoRaWAN sensor → Siemens Connect Box → Siemens Building X Platform


1.Requirements

Before starting the integration, ensure you have the following components and accounts prepared:

  • Sensor Model: Milesight IAQ Sensor AM319 (used as an example)

  • Gateway: Siemens Connect Box

  • Connect Box License: either on-premises or cloud license

  • Siemens Building X Account: You need an account with Application engineer role for accessing to Building X Data Setup app, and an active subscription to access the Devices and Data Visualizer apps

Before proceeding, make sure you have completed the Milesight sensor onboarding (link) process for the Siemens Connect Box. Refer to the dedicated onboarding guide for detailed instructions.

Additionally:

  • Ensure the Siemens Connect Box is powered on and connected to the network.

  • Confirm that the device is visible and online.

2.Configure Connect Box API Key

Login to the Connect Box console with your account.



Navigate to Organization → API Keys.

You will need to create a service account for the first time.


Click Create service account:



Input the Prefix (name) and description.

Under Organizations permissions, select Organization Admin as the permissions and save it.



Click to create the API Key, it will be used in the Building X platform.



The created API Key and the Secret will be used in the following steps.

3.Log-in to Building X to add the devices.

Log-in to the Building X platform with your account.


When done, you can see the Account, Devices and Data Setup apps.

4.Add the devices using API Key and Secret

Click Devices app to load the site of device management page.

Click Add in the top right corner in the Sites tab to add the device, and select Without activation key option.

Copy and paste the API Key and API Secret here we created in Step 2. Then click Log in.

Click Add again to load the device.

The device is added successfully.

5.Refresh to get the MQTT details

Refresh the page to load the MQTT details of this device.

You will need to click Download to download the TLS credentials.

This information will be used in the Next Step.

6.Configure the MQTT gateway in Connect Box.

Navigate to Connect Boxes → Configuration → Gateways

Then click Create new gateway, it will be used to transfer the sensor data to the external application servers.

Copy and paste the MQTT server host, client ID, uplink and downlink topic from the previous step.

To enable the TLS certificate, upload the credential files one by one.

Choose the File type and the File visibility correctly. Then save it.

Save the changes.

7.Select the properties of Milesight Sensor for MQTT gateway

Click Properties to choose which sensor data are forwarded.

Click Add Property option.

Locate to the Milesight AM319 IAQ Sensor.

Click “Save changes” and click “Send to the box” and it will sync to the Connect Box locally.

All the configurations at Connect Box side are finished.

8.Refresh Building X and synchronize with Connect Box.

Let's refresh Building X website to get the latest Connection Status.

The device is Online now.

9.Set up the sensor data in Building X

Navigate to Data Setup app in Building X.

Click Hierarchy tab.

Choose the Device and the Data points enabled.

Start to explore the Milesight Sensor data in Building X platform.

10.Dashboard creation in Building X

Now, you can freely use the data points coming from Milesight sensor to Building X and create dashboards within Building X as an example below (Example below show Milesight indoor air quality data visualized with Building X Data Visualizer App). For this, refer to our Building X technical training videos and documentation.







-END-