isy-nodejs 1.0.1-alpha.11 → 1.0.1-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ISY.js +4 -5
- package/dist/cjs/ISY.js.map +1 -1
- package/dist/esm/ISY.js +3 -4
- package/dist/esm/ISY.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ISY.ts +4 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "isy-nodejs",
|
|
3
3
|
"description": "Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.1-alpha.
|
|
5
|
+
"version": "1.0.1-alpha.15",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Pradeep Mouli"
|
|
8
8
|
},
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "88685351a08fa581fde1b12279eeb1fcf0a17527"
|
|
73
73
|
}
|
package/src/ISY.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { writeFile } from 'fs';
|
|
|
3
3
|
|
|
4
4
|
import { Parser, type ParserOptions } from 'xml2js';
|
|
5
5
|
import { parseBooleans, parseNumbers } from 'xml2js/lib/processors.js';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import { EventEmitter } from 'events';
|
|
@@ -712,17 +712,17 @@ export class ISY extends EventEmitter implements Disposable {
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
#loadElkNodes(result: any) {
|
|
715
|
+
/* #loadElkNodes(result: any) {
|
|
716
716
|
const document = new XmlDocument(result);
|
|
717
717
|
const nodes = document.childNamed('areas').childNamed('area').childrenNamed('zone');
|
|
718
718
|
for (let index = 0; index < nodes.length; index++) {
|
|
719
719
|
const id = nodes[index].attr.id;
|
|
720
720
|
const name = nodes[index].attr.name;
|
|
721
721
|
const alarmDef = nodes[index].attr.alarmDef;
|
|
722
|
-
const newDevice = new ElkAlarmSensorDevice(this, name, 1, id
|
|
722
|
+
const newDevice = new ElkAlarmSensorDevice(this, name, 1, id TODO: Handle CO Sensor vs. Door/Window Sensor );
|
|
723
723
|
this.zoneMap[newDevice.zone] = newDevice;
|
|
724
724
|
}
|
|
725
|
-
}
|
|
725
|
+
} */
|
|
726
726
|
|
|
727
727
|
async #readDeviceNodes(obj: { nodes: { node: NodeInfo[] } }) {
|
|
728
728
|
this.logger.info('Loading Device Nodes');
|