diff --git a/.github/workflows/nodejs-beta.yml b/.github/workflows/nodejs-beta.yml index 423138f..73f0cfd 100644 --- a/.github/workflows/nodejs-beta.yml +++ b/.github/workflows/nodejs-beta.yml @@ -1,7 +1,7 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages -name: Node-CI Beta +name: NodeJS-Beta on: push: diff --git a/lib/Arlo.js b/lib/Arlo.js index c8a11f2..9a3ad4c 100644 --- a/lib/Arlo.js +++ b/lib/Arlo.js @@ -48,7 +48,7 @@ class Arlo extends EventEmitter { this.devices[device.deviceId] = new ArloCamera(device, this); this.emit(Constants.EVENT_FOUND, this.devices[device.deviceId]); } - else if (device.deviceType === Constants.TYPE_ARLOQS) { + else if (device.deviceType === Constants.TYPE_ARLOQS || device.deviceType === Constants.TYPE_ARLOQ) { this.devices[device.deviceId] = new ArloQ(device, this); this.devices[device.deviceId].subscribe(); this.emit(Constants.EVENT_FOUND, this.devices[device.deviceId]); @@ -132,7 +132,7 @@ class Arlo extends EventEmitter { let baseStation = this.devices[msg.data.from]; if (baseStation) { - baseStation.emit(msg.data.properties.active); + baseStation.emit(msg.data.properties.activeMode); } break; diff --git a/lib/ArloConstants.js b/lib/ArloConstants.js index 97ba911..23b1c68 100644 --- a/lib/ArloConstants.js +++ b/lib/ArloConstants.js @@ -42,6 +42,7 @@ module.exports = { TRANS_ID : 'transId', TYPE_ARLOQS : 'arloqs', + TYPE_ARLOQ : 'arloq', TYPE_BASESTATION : 'basestation', TYPE_CAMERA : 'camera', TYPE_SIREN : 'siren', diff --git a/package-lock.json b/package-lock.json index 38f2f9a..ed10aed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "node-arlo", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cefbb18..bbbe003 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-arlo", - "version": "1.0.0", + "version": "1.1.0", "author": "homebridge-plugins", "description": "JS library for Arlo Cameras", "main": "./index.js",