DouweM / homebridge-unifi-occupancy

Homebridge plugin that adds HomeKit occupancy sensors for selected devices (and people) on your UniFi network to the iOS Home app: quickly see who's where and automate accordingly.
Apache License 2.0
41 stars 1 forks source link

Devices (iPhone) connected, not found via UniFi Controller #8

Closed idarryl closed 1 year ago

idarryl commented 1 year ago

Describe The Bug: Devices connected to Unifi AP, not found

To Reproduce: setup plugin as per config

Expected behavior: iPhone shows as connected in logs. Associated switch created in HomeKit.

Logs:

[1/14/2023, 6:24:49 AM] [UnifiOccupancy] Initializing UnifiOccupancy platform...
[1/14/2023, 6:24:50 AM] [UnifiOccupancy] Connecting with UniFi Controller...
[1/14/2023, 6:24:50 AM] [UnifiOccupancy] Getting access points from UniFi Controller...
[1/14/2023, 6:24:50 AM] Publishing bridge accessory (name: Homebridge XXXX, publishInfo: {
  username: '0E:2E:15:XX:XX:XX',
  port: 51886,
  pincode: '***-**-***',
  category: 2,
  bind: undefined,
  mdns: undefined,
  addIdentifyingMaterial: true,
  advertiser: 'bonjour-hap'
}).                       
[1/14/2023, 6:24:50 AM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge 717E) is running on port 51886.
[1/14/2023, 6:24:50 AM] [UnifiOccupancy] Found access point: 18:XX:29:60:XX:XX Living Room
[1/14/2023, 6:24:50 AM] [UnifiOccupancy] Found access point: f4:XX:bf:23:XX:XX Office
[1/14/2023, 6:24:50 AM] [UnifiOccupancy] Getting connected devices from UniFi Controller...
[1/14/2023, 6:27:50 AM] [UnifiOccupancy] Getting connected devices from UniFi Controller...
[1/14/2023, 6:30:50 AM] [UnifiOccupancy] Getting connected devices from UniFi Controller...

Plugin Config:

"unifi": {
    "controller": "https://192.168.10.3:8443",
    "username": "hb-hub",
    "password": "xxxxxxxxxxxxxx",
    "site": "8j3n94ni",
    "secure": false,
    "unifios": false
},
"interval": 180,
"accessPointAliases": [
    {
        "accessPoint": "18:XX:29:60:XX:XX",
        "alias": "Living Room"
    },
    {
        "accessPoint": "Office: AP",
        "alias": "Office"
    }
],
"platform": "UnifiOccupancy"

Screenshots: IMG_BA432E71DF93-1 IMG_1102C27AA127-1

Environment:

DouweM commented 1 year ago

@idarryl Can you try version 1.0.4 that I just pushed? It should detect anything with "phone" in the (host)name!

idarryl commented 1 year ago

Upgraded. Works beautifully!

On 15 Jan 2023, at 23:29, Douwe Maan @.***> wrote:

@idarryl https://github.com/idarryl Can you try version 1.0.4 that I just pushed? It should detect anything with "phone" in the (host)name!

— Reply to this email directly, view it on GitHub https://github.com/DouweM/homebridge-unifi-occupancy/issues/8#issuecomment-1383284162, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNWQBZMNP2EOH6KU2HZPDTWSSB6FANCNFSM6AAAAAAT3DWDBM. You are receiving this because you were mentioned.