# Milesight

<figure><img src="https://627748108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0shDrJltbdGiCRz6ip4Z%2Fuploads%2FZPMVXSlBhIeN7Jwm9sdB%2FMilesight-logo.png?alt=media&#x26;token=1d9725df-2217-4e73-918d-2f04e0337d28" alt=""><figcaption></figcaption></figure>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>Getting started</strong></mark></td><td>Everything you need to know about our integration.</td><td></td><td><a href="#getting-started">#getting-started</a></td></tr><tr><td><mark style="color:blue;"><strong>Device configuration</strong></mark></td><td>Just need to set up a device? Click here.</td><td></td><td><a href="milesight/milesight-configuration">milesight-configuration</a></td></tr></tbody></table>

## Integration overview

We're thrilled to show you an exciting integration with our esteemed sensor partner, Milesight.

This collaboration represents a significant advancement in our IoT capabilities, as we join forces with one of the foremost manufacturers in the global IoT industry.

With this integration, you have the opportunity to seamlessly integrate Milesight sensors into the UMA platform, allowing for comprehensive insights into both occupancy patterns and the environmental conditions within your building.

To find out more about Milesight’s IoT range click [here](https://cwbn804.na1.hubspotlinksstarter.com/Ctc/LY+113/cWBn804/VVQVjS5L_DKrW2Gcsc04fXgjdW6R-97G54vMMLN8pR4B-3m2ndW6N1vHY6lZ3mKW55jXJN14HZ1RW4pb4sh5G-jHPN1BfXnDTwS6tW4CScn94G8T3FW8v-wt54qmyk1W4KSM5Y5JkgQbW2NX2t31R5CTkW158Djn91wSd6W110gwZ1gftCNW6YWJkT8jB-M3W16gYpM9kPFKHW4SjZPd7-R0MBW6Nts9N3wHxncW6ND4j66Ql9XFW53HHK_5H7G8LW6zDLRv82DJY1W4lM2cy5v6Q-mW8zmHKW2bMKCzW6bj9NG3F4lq0W2jc2FH2DH9wZW8tTgfh10VS5tMkcD5JyVHQBf3JFqkY04).

***

## Getting started

We support two types of Milesight sensors - LoRaWAN and network based PoE sensors.

UMA is able to ingest sensor data from any Milesight IoT device provided that your device, gateway or network server is sending the sensor payloads to UMA's MQTT server.

{% hint style="info" %}
A LoRaWAN sensor is generally wireless whereas a PoE sensor will require a connection to your network for power and data.
{% endhint %}

***

### LoRaWAN sensors

LoRaWAN sensors are employed in cases where real-time information isn't crucial, and a data synchronisation every 20 minutes (as an example) suffices. These types of sensors are as follows:

* <mark style="color:blue;">Desk sensors</mark>
* <mark style="color:blue;">Environmental sensors</mark>
* <mark style="color:blue;">Energy sensors</mark>

If you have purchased or are planning on purchasing a Milesight LoRaWAN sensor, you will need a gateway to establish a connection from the sensor to our servers.

We recommend the following gateways as they have built in LoRa network servers:

[Milesight UG65](https://www.milesight-iot.com/lorawan/gateway/ug65/)

[Milesight UG63](https://www.milesight.com/iot/product/lorawan-gateway/ug63)

If you already have access to your own LoRaWAN network server, you just need create a connection to UMA's MQTT server.

{% hint style="info" %}
For LoRa network scoping, speak with our pre sales team.
{% endhint %}

***

### PoE sensors

Network based PoE sensors are used where real-time information is crucial such as a people counting sensor.

We support the following Milesight PoE people counting sensors:

[Milesight VS121](https://www.milesight-iot.com/lorawan/sensor/vs121/)

[Milesight VS133](https://www.milesight.com/iot/product/lorawan-sensor/vs133)

***

## Firewall rules

To check relevant Milesight firewall rules click [here](https://support.meetuma.ai/uma-knowledgebase/getting-started/security/firewall-rules#milesight-lorawan-devices).

## LoRaWAN explained

<figure><img src="https://627748108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0shDrJltbdGiCRz6ip4Z%2Fuploads%2FwfybufGpOkd2duTiKAxV%2Farchitecture.png?alt=media&#x26;token=b7543764-b5c8-48cc-8118-31d77cab323a" alt=""><figcaption><p>LoRaWAN architecture</p></figcaption></figure>

* **End Devices** - sensors or actuators send LoRa modulated wireless messages to the gateways or receive messages wirelessly back from the gateways.
* **Gateways** - receive messages from end devices and forward them to the Network Server (if the network server is not built into the gateway)
* **Network Server** - a piece of software running on a server that manages the entire network. This can be built into a gateway.
* **Application servers** - this is UMA.

For more information, visit [here](https://www.thethingsnetwork.org/docs/lorawan/what-is-lorawan/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.meetuma.ai/uma-knowledgebase/integrations/iot-sensors/milesight.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
