> For the complete documentation index, see [llms.txt](https://docs.cusna.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cusna.io/wifi-integration/summary-of-supported-wifi-vendors/tp-link-omada.md).

# TP-Link Omada

## Omada setup

For each Network you need to setup a Site in your Omada account.

Once you have the Site, create a WLAN network and an SSID.

Go to **Settings** > **Wireless Networks** and click **+ Create New Wireless Network**. And the **Network Name (SSID)**, for example "Residents WiFi".

Select **PPSK without RADIUS** in the **Security** dropdown.

On the PPSK Profile, you need to add create and assign at least one PPSK user in order to create the SSID. Click on the menu and select the last item, **Create new PPSK Profile**.

The **Create New PPSK Profile** dialog opens. Enter a **Name**, such as "*Default*". in the **PPSK1** section, enter as **Name** something like "*Default PPSK*" and in the **Passphrase** input enter a long, difficult to guess Passphrase.

![](https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FYkgxoKYD5nbNIbbjeyqJ%2Fimage.png?alt=media\&token=a78af9c7-d19d-4300-9bb5-66709d70fa59)

Once you have create your default PPSK Profile, you'' return to the main screen, and select the profile just created in the dropdown **PPSK Profile**.

![](https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FfV7NArTJbZ1MJiuhfHq9%2Fimage.png?alt=media\&token=932538f3-3e6c-4c23-909c-8d9996a646b3)

Click **Apply** to save.

{% hint style="info" %}
Cusna implements an automatic VLAN management to segregate each resident traffic. Cusna uses the slot of VLANs 2000-4000 so you should avoid using these VLANs for any other purposes.
{% endhint %}

## Cusna setup (Controller mode)

#### Get the account hostname

To connect Cusna to your Omada instance account you need to get the **hostname** of your instance. You can easily identify the hostname form the URL base of your browser once you are logged in in your Omada account.

![](https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FLmQqPNBw5HXM03CmiBl3%2Fimage.png?alt=media\&token=8187e947-3fc4-46a5-8bd8-aeb9cbbaebd0)

In the screenshot above the hostname would be: ***omada.cusna.io:8043***. Do not enter https. Make sure to enter the port if you see it in your URL.

{% hint style="warning" %}
If your controller has a self-signed SSL certificate, APIs return an error, so the integration won't work.
{% endhint %}

{% hint style="info" %}
Oamda uses the user credentials to generate the tokens required to authenticate the APIS. We suggest creating a dedicated API User to connect to Cusna.

Go to Admin and click +**Add New Admin Account**. Select **Cloud User** as **Administrator** **Type** and **All** as **Site Privileges**.
{% endhint %}

#### Link Omada to Cusna

Log in your Cusna account and go to Settings. In the WiFi integration section, select TP-Link.

Enter the requested inputs:

* **Omada tenant hostname**: the hostname of your Omada instance
* **Username**: username of the Omada admin user
* **Password**: username of the Omada admin user

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FNBsBFVCPUP8xJzOYTRd2%2Fimage.png?alt=media&amp;token=8e0d14f0-dfc9-4bee-89f5-f385f8cfaa43" alt=""><figcaption></figcaption></figure>

## Cusna setup (Cloud mode)

#### Get the account hostname

To connect Cusna to your Omada instance account you need to get the **hostname** of your instance. You can easily identify the hostname form the URL base of your browser once you are logged in in your Omada account.

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FHLRKC2RpqmRo4vOZERea%2Fimage.png?alt=media&amp;token=06acf346-20ea-4eeb-a13d-262273ecffd8" alt=""><figcaption></figcaption></figure>

With reference to the screenshot above&#x20;

1. take the hostname part: "**use1-omada-controller.tplinkcloud.com**"
2. transform it as follow adding the "api" string: "*use1-**api**-omada-controller.tplinkcloud.com*"
3. Copy the **OmandacId** value, which is the string right after the first "/": "*5492cc657ffb80e24e8afe386f8ed4bb*"

{% hint style="info" %}
Oamda uses the user credentials to generate the tokens required to authenticate the APIS. We suggest creating a dedicated API User to connect to Cusna.

Go to Admin and click +**Add New Admin Account**. Select **Local User** as **Administrator** **Type** and **All** as **Site Privileges**.
{% endhint %}

#### Link Omada to Cusna

Log in your Cusna account and go to Settings. In the WiFi integration section, select TP-Link.

Enter the requested inputs:

* **Omada tenant hostname**: the hostname of your Omada account as indicated above
* **OmandacId**: the id of your account as indicated above
* **Username**: username of the Omada admin user
* **Password**: username of the Omada admin user

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FZvP8X2LPNIMGiRxmGhu1%2Fimage.png?alt=media&amp;token=ebf06ff2-033b-4b91-8c23-10dc8f1d1b5a" alt=""><figcaption></figcaption></figure>

## Cusna setup (Open APIs mode)

#### Setup an API Client

In Global View or MSP View, go to **Settings** > **Platform Integration** > **Open API**. 2. Click  **+ Add New App**. The Open API dialog appears.

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2Fux2qtLRzUbkdw4KlbxSC%2Fimage.png?alt=media&amp;token=69d936d7-17a8-4f8a-b3e5-bd9b3faa490d" alt=""><figcaption></figcaption></figure>

Enter a name in the **App Name**, select the following options:&#x20;

* **Mode: Client**&#x20;
* **Role**: **Administrator**
* **Site Privileges**: **All**

Click **Apply**.

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FN7RuleOw1L615YAqsoCw%2Fimage.png?alt=media&amp;token=1fe91083-4df9-40f3-b701-171d9a30f54b" alt=""><figcaption></figcaption></figure>

From the main page, copy the **Client ID** and **Client Secret**.

Click on the eye icon, to open the **View Open API** Attributes and copy the **Interface Access Address** and the **Omada ID**.

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2F6tiE3vXzWCXiIVSoF4t0%2Fimage.png?alt=media&amp;token=832096bc-5dc2-44f1-b55b-a670909e4a9b" alt="" width="375"><figcaption></figcaption></figure>

#### Link Omada to Cusna

Log in your Cusna account and go to Settings. In the WiFi integration section, select TP-Link and select Open API in the Controller Mode.

Enter the requested inputs:

* Interface Access Address:
* Omada ID:
* Client ID:
* Client Secret:

<figure><img src="https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2F4fkI6vyMNFxNPj2gNSjh%2Fimage.png?alt=media&amp;token=32cd32ba-293d-438a-8e3b-b73d254f8cae" alt=""><figcaption></figcaption></figure>

## Operating Cusna

### Creating Networks

When you create or edit a Network in the Cusna dashboard, in the WiFi configuration section, you have to pick the Site, WLAN and SSID to associate to the property.

![](https://3426155342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDvdioCJduzKTpzAv3Sij%2Fuploads%2FA8JRWNzSrp09W23XMNto%2Fimage.png?alt=media\&token=8c9e6afd-5d48-4a05-976f-a5079f4eb815)

### Creating Accounts

When you create a new Account, a new PSK user will be created in your Omada account with a predefined WiFi Passphrase. The user receives an activation email with the default passphrase and QR code, and a link to the WiFi Portal where he can change the passphrase.

{% hint style="danger" %}
To avoid synchronization problems, do not manage manually the PPSKs in the Omada interface
{% endhint %}
