# \[APP\]\[Pro\] Ubiquiti UniFi Network

**URL:** <https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967>\
**Category:** Apps\
**Created:** [February 14, 2021, 9:54am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967 "2021-02-14T09:54:13Z")\
**Posts on this page:** 20\
**Page:** 31

<div class="post-metadata">

**Author:** ![Takie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/takie/32/86573_2.png) [@Takie](https://community.homey.app/u/Takie)\
**Post date:** [October 17, 2025, 3:23pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/611 "2025-10-17T15:23:49Z")

</div>

This seems to work to retrieve if any guests are on the network:

```javascript
const base = 'https://<CONTROLLER IP>/proxy/network/integration/v1/sites/<SITEID>/clients';
const filter = "access.type.eq('GUEST')";
const url = base + '?filter=' + filter
const headers = {
  'Accept': 'application/json',
  'X-API-Key': '<API KEY>'
};
const agent = new https.Agent({ rejectUnauthorized: false });

const res = await fetch(url, { method: 'GET', headers, agent });
const json = await res.json();

return json.totalCount != 0

```

---

<div class="post-metadata">

**Author:** ![fsw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fsw/32/5831_2.png) [@fsw](https://community.homey.app/u/fsw)\
**Post date:** [October 25, 2025, 8:03pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/612 "2025-10-25T20:03:01Z")

</div>

When i block my childs ipad, it just roams to another AP. I have fixed names and ip adresses on the ipad and static mac adresses.  
I cant find a solution

if i block the ipad via the unify app, it just works

---

<div class="post-metadata">

**Author:** ![Thijst06](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thijst06/32/133540_2.png) [@Thijst06](https://community.homey.app/u/Thijst06)\
**Post date:** [October 27, 2025, 11:51am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/613 "2025-10-27T11:51:39Z")

</div>

Ha funny, I’m also looking for this. I need it a bit more specific though. First device connected to vlan, last device disconnected from vlan. Because I use Private pre-shared keys, so the wifi name is always the same.

---

<div class="post-metadata">

**Author:** ![Thijst06](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thijst06/32/133540_2.png) [@Thijst06](https://community.homey.app/u/Thijst06)\
**Post date:** [October 27, 2025, 7:25pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/614 "2025-10-27T19:25:19Z")

</div>

What do you do with this code? Do you paste it in homey script? Or do you use some app for it?

I need to find a way to trigger on if someone is connected to my guest network or not. My guest network(seperate vlan).

---

<div class="post-metadata">

**Author:** ![Takie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/takie/32/86573_2.png) [@Takie](https://community.homey.app/u/Takie)\
**Post date:** [October 27, 2025, 7:41pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/615 "2025-10-27T19:41:27Z")

</div>

Yes I run it every 5 minutes in a homeyscript card. Not the most resource efficient though. Still have to figure out if I can trigger it only on event occurance via webhooks or so. Too bad @ObelixNL seems to ignore this 🤷 . For sure he knows more about this.

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 27, 2025, 8:23pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/616 "2025-10-27T20:23:49Z")

</div>

When you want to add functionality you are free to develop features for it. I am doing this in my free time without getting paid for it. I am very happy with some donations so I can buy UniFi devices to add support for it.

---

<div class="post-metadata">

**Author:** ![Thijst06](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thijst06/32/133540_2.png) [@Thijst06](https://community.homey.app/u/Thijst06)\
**Post date:** [October 27, 2025, 8:29pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/617 "2025-10-27T20:29:56Z")

</div>

Hey man, no worries your doing an amazing job already with the apps! I’m not really a coder, but will try to find some workarounds with the help of AI 😛

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 27, 2025, 8:34pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/618 "2025-10-27T20:34:51Z")

</div>

Can you send me a DM? I want to now if we can see the vlan in the event, I don’t think the vlan is expose in the event. Are you seeing some events in unifi?

There is a flow card ‘First device connected’ only this is for all devices on all networks.

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 27, 2025, 8:35pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/619 "2025-10-27T20:35:31Z")

</div>

Strange, I will look at it, Do you have an example flow?

> **[Block Device On Wifi | Homey](https://homey.app/en-nl/flow/2OipDE/)**

Works on my network

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 27, 2025, 9:30pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/620 "2025-10-27T21:30:43Z")

</div>

> **[Ubiquiti UniFi Network | Homey](https://homey.app/en-us/app/com.ubnt.unifi/Ubiquiti-UniFi-Network/test/)**
>
> Protect your home with presence detection based on (wifi) clients connected to the UniFi Controller

I have created a test version with an extra tag ipAddress in the connected and disconnected card.

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 27, 2025, 9:32pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/621 "2025-10-27T21:32:13Z")

</div>

There is a condition card (And) to check if there are guests connected or not in the latest test version. Not tested because I don’t have a guest portal only isolated devices on the guest network.

---

<div class="post-metadata">

**Author:** ![fsw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fsw/32/5831_2.png) [@fsw](https://community.homey.app/u/fsw)\
**Post date:** [October 28, 2025, 12:37pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/622 "2025-10-28T12:37:36Z")

</div>

> [@ObelixNL](#):
>
> Strange, I will look at it, Do you have an example flow?
> 
> [Shared Flow | Homey](https://homey.app/en-nl/flow/2OipDE/)

haha i have the same flow.  
I have a unify dreammachine pro. with multiple accesspoints. What do you use?

I will test it with the api directly, maybe its something else.

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [October 28, 2025, 1:04pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/623 "2025-10-28T13:04:26Z")

</div>

UniFi Cloud Gateway Max and multiple accesspoints and 16 or more port switches.

---

<div class="post-metadata">

**Author:** ![Takie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/takie/32/86573_2.png) [@Takie](https://community.homey.app/u/Takie)\
**Post date:** [October 28, 2025, 1:43pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/624 "2025-10-28T13:43:02Z")

</div>

Thanks you for the guest support in the latest test version. Much appreciated !

I will try to test it later today or this week.

---

<div class="post-metadata">

**Author:** ![Takie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/takie/32/86573_2.png) [@Takie](https://community.homey.app/u/Takie)\
**Post date:** [October 28, 2025, 2:18pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/625 "2025-10-28T14:18:22Z")

</div>

So I just tested v2.5.4, but I haven’t got any AND cards. Only unifi devices I added are listed.

---

<div class="post-metadata">

**Author:** ![Thijst06](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thijst06/32/133540_2.png) [@Thijst06](https://community.homey.app/u/Thijst06)\
**Post date:** [October 29, 2025, 6:19am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/626 "2025-10-29T06:19:50Z")

</div>

Thats strange, are you sure you downloaden the test version? I do have the changes.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/9/193828e0e69a751bc43d9b2ad453a6c1ff6a2e42.png)

For me the test additions don’t seem to work though, but sinds my network is more complicated, I was interessted in if it would work for someone else.

---

<div class="post-metadata">

**Author:** ![Takie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/takie/32/86573_2.png) [@Takie](https://community.homey.app/u/Takie)\
**Post date:** [October 29, 2025, 10:36am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/627 "2025-10-29T10:36:22Z")

</div>

Just double checked, I’m on v2.5.4 test but haven’t got any AND or THEN cards at all. Only IF cards. I already restarted both the unifi app and homey, but no luck. Last resort would be to uninstall and reinstall the unifi app but then I have to fix alot of flows ☹

---

<div class="post-metadata">

**Author:** ![Visualq](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/visualq/32/77106_2.png) [@Visualq](https://community.homey.app/u/Visualq)\
**Post date:** [October 29, 2025, 8:38pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/628 "2025-10-29T20:38:34Z")

</div>

Just a quick question, has anything changed recently?

I am getting 500 Internal Server Errors on  
/api/app/com.ubnt.unifi/websocketstatus

```auto
{
“error”: “Cannot read properties of null (reading ‘isWebsocketConnected’)”,
“error_description”: “Cannot read properties of null (reading ‘isWebsocketConnected’)”,
“stack”: “Error: Cannot read properties of null (reading ‘isWebsocketConnected’)\\n at Remote Process\\n”,
“statusCode”: null,
“statusName”: “Error”
}

```

and

/api/app/com.ubnt.unifi/getLastWebsocketMessageTime

```auto
{
“error”: “Cannot read properties of null (reading ‘getLastWebsocketMessageTime’)”,
“error_description”: “Cannot read properties of null (reading ‘getLastWebsocketMessageTime’)”,
“stack”: “Error: Cannot read properties of null (reading ‘getLastWebsocketMessageTime’)\\n at Remote Process\\n”,
“statusCode”: null,
“statusName”: “Error”
}

```

When trying to access the settings page.

Currently running UDM SE Network 9.5.21 and Ubiquiti UniFi Network v2.5.4. Had the same problem with 2.5.2. Not sure why this is. Running Homey v12.8.0. Anyone encountered this before?

---

<div class="post-metadata">

**Author:** ![Fac3](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fac3/32/4550_2.png) [@Fac3](https://community.homey.app/u/Fac3)\
**Post date:** [October 30, 2025, 8:05am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/629 "2025-10-30T08:05:44Z")

</div>

Hi @ObelixNL

I’ve just tested the latest one (2.5.4) with my USW-24-POE, powering off, neither power cycling (both cards) do not work for me.

 ![IMG_42CF40BC0F1C-1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/13b5462933b1c7ac9ced57980d05ffe5c1a7bb89.jpeg)

---

<div class="post-metadata">

**Author:** ![Blebbens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blebbens/32/79404_2.png) [@Blebbens](https://community.homey.app/u/Blebbens)\
**Post date:** [November 1, 2025, 3:13pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/630 "2025-11-01T15:13:51Z")

</div>

I am trying to set up the Ubiquiti Unifi network homey-app.

While the protect-app does accept my credentials for a local user, net homey-network app does not.

I really do not know what to put in for „site:“. IP does mean the gatewayˋs IP-address , but what does „site“ mean exactly ?

At the end I want to switch PoE-ports on/off by time using this app…

[Previous page](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967.md?page=30)

[Next page](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967.md?page=32)
