
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-alarmdecoder
Advanced tools
Node.JS client for listening and parsing AlarmDecoder events over ser2sock
Node.JS client for listening and parsing AlarmDecoder events over ser2sock Easily control and monitor DSC and Ademco / Honeywell Vista alarm systems with a PC, HA system, PLC or embedded device.
This project was created for my own purpose: monitoring and controlling my DSC home alarm system, paired with Raspberry PI and AlarmDecoder AD2PI.
AlarmDecoder products: https://www.alarmdecoder.com/catalog/index.php
Documentation is Work In Progress
npm install node-alarmdecoder
AlarmDecoder emits 4 events:
{
"zone": {
"name": "Front Door",
"type": "contact"
},
"state": 1
}
const AlarmDecoder = require('node-alarmdecoder');
const myAlarm = new AlarmDecoder('alarmdecoder', 10000, {
'00:01': {
name: 'Front Door',
type: 'contact'
},
'00:02': {
name: 'Hallway',
type: 'motion'
},
'00:03': {
name: 'Livingroom',
type: 'motion'
},
'00:04': {
name: 'Yard door',
type: 'contact'
},
'00:05': {
name: 'Garage',
type: 'fire'
},
// ... more zones
});
myAlarm.events.on('connected', () => console.log('connected'));
myAlarm.events.on('disconnected', () => console.log('disconnected'));
myAlarm.events.on('zoneChanged', (data) => console.log('zone Change', data));
myAlarm.events.on('keypadMessage', (data) => console.log('keypadMessage', data));
// myAlarm.enterCode('0000');
zone Change {
zone: {
name: 'Hallway',
type: 'motion'
},
state: 1
} // movement in Hallway
keypadMessage { numeric: '000',
bits:
{ Ready: false,
'Armed Away': false,
'Armed Home': false,
'Backlight on': false,
Programming: false,
Beeps: 0,
'Zone bypassed': 0,
'AC power': true,
'Chime enabled': false,
'Alarm occured': false,
'Alarm on': false,
'Battery low': false,
'Entry delay off': false,
Fire: false,
'System issue': false,
'Watching perimeter': false,
'Error report': false,
'Device mode': 'DSC' },
message: 'Secure System Before Arming' }
zone Change {
zone: {
name: 'Hallway',
type: 'motion'
},
state: 0
} // no more movement in Hallway II
keypadMessage { numeric: '000',
bits:
{ Ready: true,
'Armed Away': false,
'Armed Home': false,
'Backlight on': false,
Programming: false,
Beeps: 0,
'Zone bypassed': 0,
'AC power': true,
'Chime enabled': false,
'Alarm occured': false,
'Alarm on': false,
'Battery low': false,
'Entry delay off': false,
Fire: false,
'System issue': false,
'Watching perimeter': false,
'Error report': false,
'Device mode': 'DSC' },
message: 'System Is Ready To Arm' }
zone Change {
zone: {
name: 'Front Door',
type: 'contact'
},
state: 1
} // front door opened
FAQs
Node.JS client for listening and parsing AlarmDecoder events over ser2sock
The npm package node-alarmdecoder receives a total of 5 weekly downloads. As such, node-alarmdecoder popularity was classified as not popular.
We found that node-alarmdecoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.