From a110a1e6f5e7fae471910c430e2502c6071d710f Mon Sep 17 00:00:00 2001 From: Jacky Liang Date: Wed, 12 Aug 2020 16:54:49 -0400 Subject: [PATCH] Code enhancements ADDED - [Main script] Support for "Kitchen Left/Right Back/Side" door sensors --- api.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api.js b/api.js index 2e12820..a769191 100644 --- a/api.js +++ b/api.js @@ -597,12 +597,13 @@ Pulse.prototype.getZoneStatus = function getZoneStatus() { theTag = 'sensor,fire'; } else if (theNameLowercase.match(/^(.*)(door|window|dr|win|slider)(.*)$/g) !== null) { theTag = 'sensor,doorWindow'; - } else if (theNameLowercase.match(/^(kitchen nook)|(z[0-9]{2} service)$/g) !== null) { + } else if (theNameLowercase.match(/^(kitchen nook)|(z[0-9]{2} service|kitchen (left|right) (back|side))$/g) !== null) { /** * GitHub users with special naming configurations. * * @Glitch482 - "KITCHEN NOOK" * @w1llf0rd - "Z** Service" + * @tjclayton - "Kitchen Left/Right Back/Side" */ theTag = 'sensor,doorWindow'; } diff --git a/package.json b/package.json index f081019..b3c3c28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebridge-adt-pulse", "displayName": "Homebridge ADT Pulse", - "version": "1.8.12", + "version": "1.8.13", "description": "Homebridge security system platform for ADT Pulse", "main": "index.js", "private": false,