npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-node-alarm-dot-com

v1.10.1

Published

Alarm.com plugin for Homebridge using Node.js

Downloads

229

Readme

Alarm.com plugin for Homebridge

Homebridge and Alarm.com logos combined

Alarm.com plugin for Homebridge using the node-alarm-dot-com interface.

NPM

npm npm verified-by-homebridge

This is a plugin for Homebridge, allowing communication with Alarm.com endpoints.

Supported Features

  • Two-Factor Authentication
  • Querying panels
    • Arming
    • Disarming
  • Sensors (due to lag and capabilities in Alarm.com's web API, these features are partially supported)
    • Contact sensor states
    • Water leak sensor states
    • Motion sensor states
  • Lights
    • On/Off switch
    • Dimmer switch
  • Locks
    • Lock/Unlock switch
  • Garage Doors
    • Open/Close switch
  • Thermostats
    • Set mode Off/Heat/Cool/Auto
    • Set desired Heat/Cool temperatures

Installation

  1. Install homebridge: npm install -g homebridge
  2. Install this plugin: npm install -g homebridge-node-alarm-dot-com
  3. Update your configuration file (see below).

Configuration

Sample config.json:

{
  "name": "Security System",
  "username": "<YOUR ALARM.COM USERNAME>",
  "password": "<YOUR ALARM.COM PASSWORD>",
  "useMFA": true,
  "mfaCookie": "<USE INSTRUCTIONS IN THE WIKI>",
  "logLevel": 4,
  "authTimeoutMinutes": 10,
  "pollTimeoutSeconds": 30,
  "armingModes": {
    "away": {
      "noEntryDelay": false,
      "silentArming": false,
      "nightArming": false
    },
    "night": {
      "noEntryDelay": false,
      "silentArming": false,
      "nightArming": false
    },
    "stay": {
      "noEntryDelay": false,
      "silentArming": false,
      "nightArming": false
    }
  },
  "platform": "Alarmdotcom"
}

Fields:

  • platform: Must always be "Alarmdotcom" (required)
  • name: Can be anything (required)
  • username: Alarm.com login username, same as app (required)
  • password: Alarm.com login password, same as app (required)
  • useMFA: boolean indicating if your account requires MFA (required)
  • mfaCookie: MFA cookie to be sent with your API requests. Only needed if "useMFA" is set to true
  • armingModes: Object of objects with arming mode options of boolean choices (WARNING: the Alarm.com webAPI does not support setting silent arming to true and this feature does not work at this time)
  • authTimeoutMinutes: Timeout to Re-Authenticate session (WARNING: choosing a time less than 10 minutes could possibly ban/disable your account from Alarm.com)
  • pollTimeoutSeconds: Device polling interval (WARNING: choosing a time less than 60 seconds could possibly ban/disable your account from Alarm.com)
  • logLevel: Adjust what gets reported in the logs
    • 0 = NO LOG ENTRIES
    • 1 = ONLY ERRORS
    • 2 = ONLY WARNINGS and ERRORS
    • 3 = GENERAL NOTICES, ERRORS and WARNINGS (default)
    • 4 = VERBOSE (everything including development output, this also generates a file ADC-SystemStates.json with the payload details from Alarm.com in the same folder as the Homebridge config.json file)
  • ignoredDevices: An array of IDs for Alarm.com accessories you wish to hide in Homekit

Troubleshooting

Before assuming that something is wrong with the plugin, please review the issues on this project's github repository to see if there's already a similar issue reported where a solution has been proposed or the outcome is expected due to limitations with the Alarm.com web API.

Devices not responding after upgrading to v1.9.0

Due to changes in the way sensors are polled in v1.9.0, there have reports of needing to clear your device cache after this upgrade. See this issue for more information.

Migrating from Bryan Bartow's homebridge-alarm.com

If you are replacing the Bryan Bartow's Homebridge plugin with this implementation, you may be required to delete the ~/.homebridge/accessories/cachedAccessories file for the new platform to show up with the new panel, accessories and devices.

WARNING: If you delete the contents of the ~/.homebridge/persist folder, your Homebridge and devices will become unresponsive and you will have to entirely re-pair the Homebridge bridge (remove and re-scan the QR-code for Homebridge and set up all of your accessories/devices again).

Logging

The default setting for log entries is set to report critical errors, warnings about devices and notices about connecting to the Alarm.com account. Once you feel that your security system devices are being represented in HomeKit correctly you can choose to reduce the amount of information being output to the logs to save space or remove cruft while troubleshooting other Homebridge plugins.

To modify the log behaviour, add the "logLevel" field to the Alarmdotcom platform block in the Homebridge configuration file. The following example illustrates that we only want critical errors to be reported in the log.

Ignoring Devices

Accessories that you wish to hide in Homekit (e.g., fobs) can be identified by finding the Serial Number in the settings of the accessory in the Apple Home app, or alternatively in your output log (log level 3 or higher) when Homebridge starts up. If the accessories still exist in Homekit, please make sure that you have typed the serial number exactly. If they still continue to be displayed (or vice-versa they still don't show up after un-ignoring them), then you may be required to delete the ~/.homebridge/accessories/cachedAccessories file as they may still be stored in the cache within Homebridge.

Credits

Forked from John Hurliman's FrontPoint* plugin for Homebridge to replace the branding and code namespace from FrontPoint to Alarm.com.

*FrontPoint is simply a rebranded service provider for Alarm.com, but FrontPoint is not needed for this plugin to work.

A big thank you to Mike Kormendy for forking and working on this plugin so long!