Skip to content

Commit

Permalink
Critical bug fix
Browse files Browse the repository at this point in the history
FIXED
- [Plugin code] Unable to arm device because of typo in code.

PRIVACY NOTICE
Because of unknown bugs plagued in the plugin (that people aren't reporting on GitHub), this version will contain a bug reporting tool that will send debug logs here:

"https://console.re/vHeMZvGjaBWjN29b8PARrCpBNtHTWYteMGFejmxDwgUpan9SMU"

Please be advised these logs are not saved, are ANONYMOUS and in no way, you will be geographically or personally identified. The information that is being sent is:
- A random session number (to group actions).
- Date and time.
- Basic system information (system and architecture version).
- Node version, Homebridge version, Plugin version.
- System status changes (e.g. "all quiet" to "motion").
- Set device logs (e.g. "disarmed" to "away").
- Wrong web portal version messages (e.g. "17.0.0" to "18.0.0").
  • Loading branch information
mrjackyliang committed Dec 24, 2019
1 parent e9bec2f commit 9d519da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,8 @@ ADTPulsePlatform.prototype.setDeviceStatus = function (accessory, arm) {
.login()
.then(async () => {
// Attempt to clear the alarms first.
if (lastState.includes("alarm")) {
if (["carbon monoxide", "fire", "burglary"].includes(lastState)) {
if (latestState.includes("alarm")) {
if (["carbon monoxide", "fire", "burglary"].includes(latestState)) {
this.logMessage(`Alarm is active! Disarming the ${name} (${id})...`, 20);

await this.pulse.setDeviceStatus(oldArmState, "off")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-adt-pulse",
"version": "1.6.5",
"version": "1.6.6",
"description": "Homebridge security system platform for ADT Pulse",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9d519da

Please sign in to comment.