Node.js Frontpoint Client
Unofficial FrontPoint Security API client. Currently supports querying security system and sensor states, arming, and disarming.
Usage
Install:
npm i frontpoint
Querying:
const frontpoint = frontpoint
Arming:
const frontpoint = frontpoint
Documentation
- frontpoint
- ~login(username, password) ⇒
Promise
- ~getCurrentState(systemID, authOpts) ⇒
Promise
- ~getPartition(partitionID, authOpts) ⇒
Promise
- ~getSensors(sensorIDs, authOpts) ⇒
Promise
- ~armStay(partitionID, authOpts, opts) ⇒
Promise
- ~armAway(partitionID, authOpts, opts) ⇒
Promise
- ~disarm(partitionID, authOpts) ⇒
Promise
- ~login(username, password) ⇒
Promise
frontpoint~login(username, password) ⇒ Authenticate with alarm.com using the my.frontpointsecurity.com single sign-on portal. Returns an authentication object that can be passed to other methods.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
username | string |
FrontPoint username. |
password | string |
FrontPoint password. |
Promise
frontpoint~getCurrentState(systemID, authOpts) ⇒ Retrieve information about the current state of a security system including attributes, partitions, sensors, and relationships.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
systemID | string |
ID of the FrontPoint system to query. The Authentication object returned from the login method contains a systems property which is an array of system IDs. |
authOpts | Object |
Authentication object returned from the login method. |
Promise
frontpoint~getPartition(partitionID, authOpts) ⇒ Get information for a single security system partition.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
partitionID | string |
Partition ID to retrieve |
authOpts | Object |
Authentication object returned from the login method. |
Promise
frontpoint~getSensors(sensorIDs, authOpts) ⇒ Get information for one or more sensors.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
sensorIDs | string | Array.<string> |
Array of sensor ID strings. |
authOpts | Object |
Authentication object returned from the login method. |
Promise
frontpoint~armStay(partitionID, authOpts, opts) ⇒ Arm a security system panel in "stay" mode. NOTE: This call generally takes 20-30 seconds to complete.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
partitionID | string |
Partition ID to arm. |
authOpts | Object |
Authentication object returned from the login method. |
opts | Object |
Optional arguments for arming the system. |
opts.noEntryDelay | boolean |
Disable the 30-second entry delay. |
opts.silentArming | boolean |
Disable audible beeps and double the exit delay. |
Promise
frontpoint~armAway(partitionID, authOpts, opts) ⇒ Arm a security system panel in "away" mode. NOTE: This call generally takes 20-30 seconds to complete.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
partitionID | string |
Partition ID to arm. |
authOpts | Object |
Authentication object returned from the login method. |
opts | Object |
Optional arguments for arming the system. |
opts.noEntryDelay | boolean |
Disable the 30-second entry delay. |
opts.silentArming | boolean |
Disable audible beeps and double the exit delay. |
Promise
frontpoint~disarm(partitionID, authOpts) ⇒ Disarm a security system panel. NOTE: This call generally takes 20-30 seconds to complete.
Kind: inner method of frontpoint
Param | Type | Description |
---|---|---|
partitionID | string |
Partition ID to disarm. |
authOpts | Object |
Authentication object returned from the login method. |