# Adding a Device

Now that you have created a Building it is time to start filling it with Devices. The process is very intuitive and can be started from the Main Building Dashboard. Press on the "Add new device" button and you will be taken to a new screen.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FYQc5wEHEX3tFRUMYEPBj%2Fimage.png?alt=media&#x26;token=f7efa173-e822-48df-86f2-50db652e0e2d" alt=""><figcaption><p>Main Building Dashboard</p></figcaption></figure>

There are two ways to add a Device

* Manually filling in its Serial Number and App Key
* Importing a file with the parameters for 1 or more devices (this is useful if you need to add devices in bulk).

{% hint style="info" %}
MClimate has the practice of sending a CSV file with the device parameters required for registration **via email**. If you have not received one when ordering directly contact MClimate or the distributor you purchased the product from.
{% endhint %}

## Manually importing a device

Enter the "Serial Number" (14 symbols) and the "App Key" (32 symbols) in the corresponding text boxes and press on the "Add" button.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FJcEmpYqZpTw9wCwsnEST%2Fimage.png?alt=media&#x26;token=c058b1f9-1b7c-488d-8a85-50dd780b0079" alt=""><figcaption><p>Adding a device</p></figcaption></figure>

You can add many devices this way in sequence, they will all be listed in the table at the lower half of the screen (refer to the image below).

Once you have added all devices and they appear in the table you can press the "Import devices" button in order to register them with Enterprise.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FfZVJllxCIOhzpk7VQPWr%2Fimage.png?alt=media&#x26;token=1bf056f5-99c6-4325-8c2f-4bb62c0bee6b" alt=""><figcaption><p>Importing devices</p></figcaption></figure>

Your screen will refresh and they will appear in the Main Dashboard.

{% hint style="info" %}
The dot in front of the device icon represents its state. Green if it is online, gray if it is not (refer to the image below).
{% endhint %}

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FONcuwbhsvoLahYeLnAH5%2Fimage.png?alt=media&#x26;token=6aa34ef8-4ded-4fcc-a3d3-5cf5f6de48b0" alt=""><figcaption><p>Registered devices in Main Dashboard</p></figcaption></figure>

## Importing devices via a file

This option is especially suitable if you want to provision a lot of devices at once.

{% hint style="warning" %}
The CSV file should be in its original format as generated by MClimate, with the fields in the following order:\
Serial Number; DevEui; AppEui; AppKey; DeviceType

Do not remove the row with the column names.
{% endhint %}

The following image is a representation of a CSV file in the proper format, you can also download an example one below.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FPNl0p6ZSCGNLoMgJN0Ko%2Fimage.png?alt=media&#x26;token=72ba3559-6d0a-48cc-a73d-ec338545e189" alt=""><figcaption><p>Example Devices CSV file structure</p></figcaption></figure>

{% file src="<https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2F3RRHblqxLwx0nFeu3L9Y%2FExample%20Devices%20CSV%20FILE.csv?alt=media&token=7302836d-50bc-4bac-acc6-950a8ab5b313>" %}
Example Devices CSV file
{% endfile %}

Simply drag and drop the CSV file into the text box.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FSfKyXlRv1BwLago8Fx1W%2F48.png?alt=media&#x26;token=8040d5d6-db0a-4324-ae8c-c975d1acf087" alt=""><figcaption><p>Importing Devices via a file</p></figcaption></figure>

If the file is in the right format the table will populate with all the devices in it. Import via the button and you are done.

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2FK1y79CvvAhXRzfHvd5oO%2F49.png?alt=media&#x26;token=b4034c39-79cd-4612-9c2f-551868bdf209" alt=""><figcaption><p>Importing in bulk</p></figcaption></figure>

As with the manual case you should see all device in the Main Dashboard.

{% hint style="info" %}
If there is a device in the file you are importing via that has already been registered, there should be no error it will simply be omitted and the rest will be registered.
{% endhint %}

<figure><img src="https://3370626320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsOSt2XkjYl-QZLySV%2Fuploads%2F1iwMHJ6KnFFGEX3sy6bP%2Fimage.png?alt=media&#x26;token=19ea3a20-32ff-421f-ace4-596010588ff0" alt=""><figcaption><p>Complete device list after importing</p></figcaption></figure>
