wo-d / homebridge-arlo

Arlo platform plugin for homebridge
Other
2 stars 1 forks source link

Homebridge-Arlo

CircleCI

Homebridge plugin for Arlo. Includes email MFA support. Please read the underlying library arlo-api's README for information about configuring MFA correctly.

Feel free to fork or make pull requests with additional features.

Caveats

Installation

This varies by homebridge installation and gui.

Development

Debugging

Install homebridge locally to development machine.

Update homebridge configuration file. Default location in Windows C:\Users\{username}\.homebridge\config.json

{
  "bridge": {
    "name": "test bridge",
    "username": "AA:AA:AA:AA:AA:AA",
    "port": 51826,
    "pin": "111-11-111"
  },
  "platforms": [
    {
      "name": "Config",
      "port": 8581,
      "auth": "form",
      "theme": "auto",
      "tempUnits": "c",
      "lang": "auto",
      "log": {
        "method": "file",
        "path": "C:\\Users\\{username}\\.homebridge\\homebridge.log"
      },
      "platform": "config"
    },
    {
      "arloUser": "user",
      "arloPassword": "pw",
      "emailUser": "email@gmail.com",
      "emailPassword": "pw",
      "emailServer": "imap.gmail.com",
      "emailImapPort": 993,
      "debug": true,
      "enableRetry": true,
      "retryInterval": 5,
      "platform": "Arlo v2"
    }
  ],
  "accessories": []
}

Included is a VSCode launch profile for debugging the plugin. Courtesy of jeff-winn. Attach some breakpoints and run the Launch profile.