Homebridge UniFi Occupancy Sensor
Go to file
2017-09-11 21:51:55 +10:00
.gitignore initial commit 2017-07-18 21:28:49 +10:00
index.js handle error 2017-09-11 21:51:55 +10:00
package.json 0.0.5 2017-07-31 20:51:46 +10:00
README.md initial commit 2017-07-18 21:28:49 +10:00
yarn.lock initial commit 2017-07-18 21:28:49 +10:00

Homebridge UniFi Occupancy Sensor

This Homebridge plugin will provide an occupancy sensor accessory to HomeKit based on the devices connected to WiFi access points managed by a UniFi Controller.

The plugin connects to the UniFi Controller event web socket to get instant notifications of connecting devices - which can then be used to trigger HomeKit actions like turning on the lights.

Requirements

Homebridge Config

"accessories": [
  {
    "accessory": "UniFi Occupancy Sensor",
    "name": "Occupancy Sensor",
    "unifi": {
      "controller": "https://demo.ubnt.com:8443",  // Required. The url of the UniFi Controller.
      "username": "superadmin",                    // Required. A read-only user is fine.
      "password": "password",                      // Required.
      "site": "default",                           // Optional. The UniFi site to connect to.
      "secure": false                              // Optional. Set true to validate the SSL certificate.
    },
    "watch": ["44:00:10:f0:3e:66"]                 // Required. An array of device MAC addresses to watch for.
    "watchGuests": true                            // Optional. Set false to not monitor guest networks.
  }
]